Moonbase59 / studiodisplay

A fast, modular MQTT-based signalling & display solution for Web Radio Stations using IDJC. Or just to make your smart home even smarter.
GNU General Public License v3.0
22 stars 4 forks source link

WunderGround not working #6

Open nscpro opened 5 years ago

nscpro commented 5 years ago

I'm using this site: https://www.wunderground.com/wundermap?apiref=b27828e10245d1a1. If I take address end API b27828e10245d1a1 and put this config file wunderground api filed and run python folder inside ./mqtt-weather-wunderground.py. Terminal showing me auth error. This API is not auth valid.

On things more:) Page show me left side radio stream info and right side kodi info, but how can i change kodi box info to radio stream info to page show me to different radio stream info, left box one radio and second box second radio.

pi@studiodisplay1:~/studiodisplay/python $ ./mqtt-weather-wunderground.py Read configuration from /home/pi/studiodisplay/python/../config/studiodisplay1.cfg Connecting to broker studiodisplay1:1883 Connection Accepted. Connected to broker studiodisplay1:1883 as user '' Subscribing to device config at weather/1/set/# Subscribed with message ID 2 and QOS (0,) acknowledged by broker Getting Weather Underground data from http://api.wunderground.com/api/b27828e10245d1a1/conditions_v11/q/pws:IHAMBURG2112.json URLError: http://api.wunderground.com/api/b27828e10245d1a1/conditions_v11/q/pws:IHAMBURG2112.json: Unauthorized Getting Weather Underground data from http://api.wunderground.com/api/b27828e10245d1a1/forecast/q/pws:IHAMBURG2112.json URLError: http://api.wunderground.com/api/b27828e10245d1a1/forecast/q/pws:IHAMBURG2112.json: Unauthorized

Moonbase59 commented 5 years ago

Sorry for the late response.

Wunderground: See #4

2x Radio instead of Radio/KODI: This is a bit more complicated, since Studiodisplay is designed to show info for ONE (real) studio (with a presenter) per unit (studio, microphones, request line and stream status).

So you’d just use another monitor (and studiodisplay unit), or you’d have to change index.html and studiodisplay.js and set up an extra stream feed for the second stream (mqtt-radio.py).