Not sure if @rpitera is going to continue using iframe for this current instance, but for me, I definitely have a use for those updates to the iframe widget and would love them to be put into the main release
Ok, I’ll slide it in there tomorrow - sorry I forgot.
No, its alright, no need to apologize, I appreciate it, truly!!
I’m actually using it too. I still want to work on getting big image to work as well too. I can see use cases here for both. It would be great if they could be included.
OK, I pushed the update - 1.7.4 - I won’t make a big announcement but it should be what you need
Version 1.7.4
- Modify IFrame widget for @jbardi and @robpitera
Soooo…
Almost two months later and I finally got HADashboard up to current, but I’m finding that my iframe widget is no longer displaying like it used to and now looks like this instead of taking up the full space of the widget like it used to.
I’m still using the same code as before:
<!-- ROW 1 -->
<li data-row="1" data-col="1" data-sizex="5" data-sizey="4">
<div data-id="iframeId1" data-view="Iframe" data-src="https://radblast.wunderground.com/cgi-bin/radar/WUNIDS_map?station=EWR&brand=wui&num=10&delay=25&type=TR0&frame=0&scale=1.000&noclutter=0&showstorms=0&mapx=400&mapy=240¢erx=400¢ery=240&transx=0&transy=0&showlabels=1&severe=0&rainsnow=1&lightning=0&smooth=0&rand=24562171&lat=0&lon=0&label=you"></div>
</li>
And before I did the update, I stowed my iframe code so that the git pull would work properly and replace what @jbardi and I came up with. I can’t see any difference between what we started with and what you pushed so I am at loss for what happened.
EDIT: Tagging @aimc so he can weigh in…
Hi, everyone. I’ve decided to join the bandwagon and implemented Hadashboard. How can I change the size so that four columns are displayed without having to zoom in? Thanks.
Please pardon me if the question has already been asked.
Yes, it is possible - let me find a link for you.
Here you go|
Hey thanks. This is all I need:
<script type="text/javascript">
$(function() {
Dashing.numColumns = 4
});
</script>
I got hapush configured but I can’t get the dashboard synchronized in desktop and smartphone with the same URL: http://192.168.0.2:3030/main
.
While running in console:
[hass@home-server hapush]$ ./hapush.py hapush.cfg
2016-12-28 19:30:19,849 INFO Reading dashboard: /fileserver/users/homeassistant/hadashboard/dashboards/example.erb
2016-12-28 19:30:19,855 INFO Reading dashboard: /fileserver/users/homeassistant/hadashboard/dashboards/main.erb
Had to Ctrl+C twice to end the hapush.py process.
[code][hass@home-server hapush]$ ./hapush.py hapush.cfg
2016-12-28 19:30:19,849 INFO Reading dashboard: /fileserver/users/homeassistant/hadashboard/dashboards/example.erb
2016-12-28 19:30:19,855 INFO Reading dashboard: /fileserver/users/homeassistant/hadashboard/dashboards/main.erb
^C2016-12-28 19:38:36,010 CRITICAL Unexpected error:
2016-12-28 19:38:36,010 CRITICAL ------------------------------------------------------------
2016-12-28 19:38:36,018 CRITICAL Traceback (most recent call last):
File “./hapush.py”, line 265, in run
for msg in messages:
File “/usr/lib/python3.5/site-packages/sseclient.py”, line 64, in next
nextline = self.resp_file.readline()
File “/usr/lib/python3.5/site-packages/requests/packages/urllib3/response.py”, line 380, in read
data = self._fp.read(amt)
File “/usr/lib/python3.5/http/client.py”, line 448, in read
n = self.readinto(b)
File “/usr/lib/python3.5/http/client.py”, line 478, in readinto
return self._readinto_chunked(b)
File “/usr/lib/python3.5/http/client.py”, line 573, in _readinto_chunked
chunk_left = self._get_chunk_left()
File “/usr/lib/python3.5/http/client.py”, line 541, in _get_chunk_left
chunk_left = self._read_next_chunk_size()
File “/usr/lib/python3.5/http/client.py”, line 501, in _read_next_chunk_size
line = self.fp.readline(_MAXLINE + 1)
File “/usr/lib/python3.5/socket.py”, line 575, in readinto
return self._sock.recv_into(b)
KeyboardInterrupt
2016-12-28 19:38:36,018 CRITICAL ------------------------------------------------------------
^CTraceback (most recent call last):
File “./hapush.py”, line 348, in
main()
File “./hapush.py”, line 343, in main
run()
File “./hapush.py”, line 274, in run
time.sleep(5)
KeyboardInterrupt
[hass@home-server hapush]$[/code]
Here’s the config minus the api key:
[hass@home-server hapush]$ cat hapush.cfg
ha_url = "http://192.168.0.2:8123"
ha_key = ...secret...
dash_host = "192.168.0.2:3030"
dash_dir = "/fileserver/users/homeassistant/hadashboard/dashboards"
logfile = "/fileserver/users/homeassistant/hadashboard/hapush/hapush.log"
Any luck? At least I can control the lights from the hadashboard and activate scenes which is what I have.
And yes, my home directory is /fileserver/users. User “hass” has a home directory of /fileserver/users/homeassistant.
hadashboard is located in /fileserver/users/homeassistant/hadashboard.
Home Assistant is located in /fileserver/users/homeassistant/.homeassistant
Both of the two directories are owned by user “hass.”
Two ctrl-c is expected behavior, but i am not clear what the issue is?
I followed the instructions to configure hapush in here:
https://home-assistant.io/ecosystem/hadashboard/hapush/
It seems hapush is not responding to events. I turned on the switch for Living Room Lights in Home Assistant, but the HADashboard did not react to changes. I have to refresh the HADashboard to see that the light is on. I can click in the Living Room Lights inside the HADashboard and the frontend of Home Assistant reacts to changes. I opened up HADashboard in my tablet to do the same to see if HADashboard in my desktop reacts to changes as well.
I have HADashboard web page opened in Google Chrome in my desktop.
I also have HADashboard shown up in my smartphone.
Both my desktop and smartphone points to http://192.168.0.2:3030/main.
Turning on the Living Room Lights from my smartphone shows it as on, but in my desktop, the dashboard shows it as “off.” Turning on the Living Room Lights from my desktop would simply do nothing but set the state to “on.” Turning off the Living Room Lights from my smartphone will still show it as “on” in my desktop.
I turned on DEBUG mode for hapush and it seems hapush is listening to Home Assistant’s change in state, but it’s not listening to HADashboard’s change in state in both my desktop and smartphone.
[hass@home-server hapush]$ ./hapush.py hapush.cfg -D DEBUG
2016-12-28 20:22:41,004 INFO Reading dashboard: /fileserver/users/homeassistant/hadashboard/dashboards/example.erb
2016-12-28 20:22:41,010 INFO Reading dashboard: /fileserver/users/homeassistant/hadashboard/dashboards/main.erb
2016-12-28 20:22:55,677 DEBUG Event type:call_service:
2016-12-28 20:22:55,823 DEBUG Event type:state_changed:
2016-12-28 20:22:55,823 DEBUG Entity ID:light.living_room_lights:
2016-12-28 20:22:55,958 DEBUG Event type:state_changed:
2016-12-28 20:22:55,959 DEBUG Entity ID:group.all_lights:
2016-12-28 20:22:55,986 DEBUG Event type:service_executed:
2016-12-28 20:23:00,675 DEBUG Event type:state_changed:
2016-12-28 20:23:00,675 DEBUG Entity ID:sensor.date__time:
2016-12-28 20:23:30,873 DEBUG Event type:state_changed:
2016-12-28 20:23:30,874 DEBUG Entity ID:sun.sun:
2016-12-28 20:23:32,982 DEBUG Event type:call_service:
2016-12-28 20:23:33,074 DEBUG Event type:service_executed:
2016-12-28 20:23:46,707 DEBUG Event type:call_service:
2016-12-28 20:23:46,848 DEBUG Event type:state_changed:
2016-12-28 20:23:46,848 DEBUG Entity ID:light.living_room_lights:
2016-12-28 20:23:46,984 DEBUG Event type:state_changed:
2016-12-28 20:23:46,985 DEBUG Entity ID:group.all_lights:
2016-12-28 20:23:47,012 DEBUG Event type:service_executed:
2016-12-28 20:23:57,506 DEBUG Event type:call_service:
2016-12-28 20:23:57,600 DEBUG Event type:service_executed:
2016-12-28 20:24:00,585 DEBUG Event type:state_changed:
2016-12-28 20:24:00,585 DEBUG Entity ID:sensor.date__time:
I messed with the frontend to see if HAPush is listening and I saw media_player.living_room_receiver (which is my Marantz SR5008 receiver, by the way) and at least it’s working. Alas, the receiver is not in my HADashboard.
I hope I can be of help.
Hi Rob - sorry I missed this. I don’t really have anything to add as I am not using the IFrame widget, and nothing in any of my updates should have made any difference to it.
No problem - thanks. I just don’t understand what happened as I didn’t change anything on my end during the updates but maybe I’ll just delete it and start from scratch again. Cheers.
Looks looks a config issue - HAPush sees the events but does not act on them, my guess would be because the widget names in the dashboard don’t match the entity ids you have for the various devices - can you check that, and maybe post a sample of your dashboard code?
ill try to implement your iframe tonight and see what could be the problem.
Here you go:
main.erb:
[code]
<li data-row="2" data-col="1" data-sizex="1" data-sizey="1">
<div data-id="Living_Room_Lights" data-title="Living Room Lights" data-view="Hadimmer"></div>
</li>
<li data-row="2" data-col="2" data-sizex="1" data-sizey="1">
<div data-id="Bedroom_Lights" data-title="Bedroom Lights" data-view="Hadimmer"></div>
</li>
<li data-row="1" data-col="3" data-sizex="1" data-sizey="1">
<div data-id="Game_in_PS3" data-title="Game in PS3" data-view="Hascene" data-bgcolor="#003300"></div>
</li>
<li data-row="1" data-col="4" data-sizex="1" data-sizey="1">
<div data-id="Movie_Time" data-title="Movie Time" data-view="Hascene" data-bgcolor="#003300"></div>
</li>
<li data-row="2" data-col="3" data-sizex="1" data-sizey="1">
<div data-id="Main_PC" data-title="PC" data-view="Hascene" data-bgcolor="#003300"></div>
</li>
<li data-row="2" data-col="4" data-sizex="1" data-sizey="1">
<div data-id="Relax" data-title="Relax" data-view="Hascene" data-bgcolor="#003300"></div>
</li>
<li data-row="3" data-col="3" data-sizex="2" data-sizey="1">
<div data-id="Watch_Sat_TV" data-title="Watch TV over Satellite" data-view="Hascene" data-bgcolor="#003300"></div>
</li>
Home Assistant - light.yaml:
[code] - platform: insteondimmeroh
name: “Living Room Lights”
resource: http://localhost:8080/rest/items/ldLRLamps
- platform: insteondimmeroh
name: “Bedroom Lights”
resource: http://localhost:8080/rest/items/ldBRLamps[/code]
insteondimmeroh comes from here:
Once again, Home Assistant is able to respond to button presses. Here’s the output from Dashing. I turn off the “Living Room Lights” and turned it back on.
192.168.0.166 - - [29/Dec/2016 11:42:19] "POST /homeassistant/dimmer HTTP/1.1" 200 11 0.0961
192.168.0.166 - - [29/Dec/2016 11:42:24] "POST /homeassistant/dimmer HTTP/1.1" 200 11 0.0914
what is the configfile from hapush?
to me it seems that hapush isnt pushing, so maybe is the given url wrong?