X10 Community Forum

📱🖥️PiX10Hub ( Always Evolving Open Source) => 🏥Help and Trouble Shooting => 🧞HomeGenie ⛑Help => Topic started by: soxfan1966 on December 28, 2018, 12:24:11 PM

Title: Open Weather
Post by: soxfan1966 on December 28, 2018, 12:24:11 PM
I have this installed and running, however it is showing Celcius rather than Farenheit.  I'm not sure how to update / change this as I thought I had it set up correctly when I had this on my PC but on the Pi Hub it appears to be not accepting it.

Thoughts ?
Title: Re: Open Weather
Post by: soxfan1966 on December 28, 2018, 01:38:11 PM
I *think* I got this working now.  There is a setting under HomeGenie Configure / Maintenance called User Interface.  There are toggles there for the Temp and Date/Time format.  Once I switched these to what I wanted the Open Weather widget updated to respect them.
Title: Re: Open Weather
Post by: bkenobi on December 29, 2018, 08:19:14 AM
That is correct, the setting is in maintenane.  If you use the free HG app, IIRC the app doesn't respect this setting and always displays in C.  The pay app respects the setting.
Title: Re: Open Weather
Post by: soxfan1966 on December 29, 2018, 08:23:17 AM
I have not been able to find the free app version in the Android App Store, just the paid one.  I'd like to try the free one, does someone have a link?   What's the difference between the two versions?
Title: Re: Open Weather
Post by: Tuicemen on December 29, 2018, 08:30:39 AM
The paid app has many more options then the free one as you would expect.
I've not tried the paid app yet but I prefer the web page over the free HG app.
If I remember the free app has to be downloaded from GitHub but I could be wrong. It has been several months since I downloaded and used it.
Title: Re: Open Weather
Post by: petera on December 29, 2018, 07:14:11 PM
The main difference between the two is the amount of calls you can make to their server in any given day.
Title: Re: Open Weather
Post by: soxfan1966 on December 30, 2018, 09:49:57 AM
Still can't find where to download the free app.  One advantage over the app vs using the web login is to have an "easier" way for the wife or kids to use the system without having access to the full blown web pages too.

Working on DDNS setup so I can access remotely (another thread) but still would like to try out the app.
Title: Re: Open Weather
Post by: brobin on December 30, 2018, 12:09:45 PM
For 3 bucks why wait? The developer already provides HG for free so why not buy him a cup of coffee?
Title: Re: Open Weather
Post by: soxfan1966 on December 30, 2018, 12:16:32 PM
The point was to try it vs web page access.  I don't wish to get into a debate of free vs paid - we are all free to have our own opinion and choices.

If there is a free version available, then the developer is aware there is a choice as well.

The point of this exercise was to prove X10 Hub on the pi works as a viable solution to running AHP on a PC.  That is what I am trying to assist with - if people chose to donate or not is not is really not part of my interest.
Title: Re: Open Weather
Post by: petera on December 30, 2018, 12:23:23 PM
For 3 bucks why wait? The developer already provides HG for free so why not buy him a cup of coffee?

Couldn't agree more. What do users think these developers live on. A few dollars goes a long way to developers like these. We as a group should be encouraging users to contribute.

The mind boggles  :'
Title: Re: Open Weather
Post by: Tuicemen on December 30, 2018, 12:52:33 PM
For 3 bucks why wait? The developer already provides HG for free so why not buy him a cup of coffee?
Couldn't agree more. What do users think these developers live on. A few dollars goes a long way to developers like these. We as a group should be encouraging users to contribute.

The mind boggles  :'
This doesn't need to be brought up in every thread! If you feel so strongly about pushing donations
 Start  special thread for it! It can be made a sticky so it stays top of the list of topics.
Title: Re: Open Weather
Post by: brobin on December 30, 2018, 12:57:08 PM

If there is a free version available, then the developer is aware there is a choice as well.


My point is, while it may have been in the past, it's not readily available for free anymore. While one could continue to search and perhaps find the apk in some obscure place, is it worth the effort to save $3?  Everyone will have their own threshold to answer that question.  In no way am I judging anyone's decision to go free or pay - I'm just looking at it from a practical point of view.

BTW, according to this, if you buy it and don't like it, you have 2 hours to return it and get a refund through the Google Play Store: https://goo.gl/5DowXu 
Title: Re: Open Weather
Post by: bkenobi on January 02, 2019, 12:34:15 PM
I don't know why the free app isn't showing up.  I used it for a long time and was happy with it.  I did get the paid app at some point and realized how much better it is.  I didn't do it until I knew I was sticking with HG for the foreseeable future so I understand about not wanting to jump on even for a minuscule cost.  That said, the paid version is significantly faster and a very usable app whereas the free version was bad enough I generally used the web interface.
Title: Re: Open Weather
Post by: racerfern on January 24, 2019, 03:17:21 PM
With WU not working unless your weather station is uploading data, is there another way to get the weather into HG?
Title: Re: Open Weather
Post by: bkenobi on January 24, 2019, 04:39:57 PM
With WU not working unless your weather station is uploading data, is there another way to get the weather into HG?

What do you mean?  You want your data from a personal weather station to show up in HG but you are using WU as the middle man?  If so, it depends on your weather station and how you have it set up.  Mine is RF with an indoor monitor but without purchasing a USB or WiFi dongle to upload data it won't even connect to anything.  But if you have a station that already speaks to a PC, yes you can potentially upload data locally.  If the data can be send over MQTT, you can use the broker built into HG or install Mosquitto and then link the incoming data to a sensor.
Title: Re: Open Weather
Post by: racerfern on January 24, 2019, 04:52:37 PM
I have my own PWS and I use the rain sensor and wind sensor. Rain sensor to determine how much lawn watering to do and when. Wind sensor to automatically close a very large awning.
I have an indoor display and I use Cumulus to access the indoor display and save the real time data on the PC. Via a plug-in in HS3 I can access this data and a few events later it all works.

So, no, WU is not the middleman. I do upload there, but I don't need WU to access my own data.

Now to try and do the same thing with HG. Not sure I can plug the indoor display into the Pi and be able to do anything with it. Maybe...
MQTT is built into HG?
Title: Re: Open Weather
Post by: bkenobi on January 24, 2019, 06:24:45 PM
If your goal is to remove the PC (a good goal), you would need a way to get the data from the weather station (transmitting on either 433 or 900MHz presumably) to a computer somewhere.  If the weather station's base has a USB then it might work on a RPi, but that depends on if someone has written an interface.  If not, you would have to figure something out.  I'd recommend searching for your station and or the brand and Linux/RPi to see if it's already been done.

If your goal is to keep the station plugged into the PC and use that to transmit, that's pretty easy.  You simply set up a MQTT client on the PC and use a script to send the data to a MQTT broker.  I think some of the weather trackers (WU perhaps) currently still have an MQTT broker to upload data to...maybe not.  Either way, you can send it directly to HG once a broker is set up on the RPi.  You will need something inside HG to catch the data.  Look at my MQTT code to see how I did this for some temperature sensors and weather data.  Others have probably done something similar if you look around online.
Title: Re: Open Weather
Post by: racerfern on January 24, 2019, 06:39:40 PM
Quote
Look at my MQTT code to see how I did this for some temperature sensors and weather data.

And where do I find this code?

Thanks for your input, it's along the lines of what I was expecting. The inside display is Ambient Weather WS-1090 and the sticker on the back says 915Mhz. I expect that plugging into the Pi and being able to something with it is beyond me. Way beyond me.

I can always get data from some online site but it won't be the actual numbers for rain and wind. That's why I like getting my own data.
Title: Re: Open Weather
Post by: bkenobi on January 24, 2019, 10:13:57 PM
The link to my github has been posted enough times I assumed it was readily available.

https://github.com/bkenobi/HomeGenie_Apps

I have found over the years that while some things appear to be obvious, unless someone else has taken the time to write the code it doesn't exist until you write it yourself. 

For example: I have some code that I combined from various sources that allows for pulling 433MHz signals from various sensors OTA and converting them to MQTT.  Unfortunately, the hardware wasn't good enough for my needs and the project still sits 95% complete.  If I knew a little bit more about more hardware I could have fully implemented it and had a really great gateway...but I don't have the background nor the time/energy to learn it.

https://github.com/bkenobi/ookDecoder

That said, there are people that have written similar code to what you need.  I don't know if it works with your hardware, but a simple google search found:

www.weewx.com
www.wviewweather.com

Also the following promising forum:

www.wxforum.net
Title: Re: Open Weather
Post by: racerfern on February 18, 2019, 06:12:24 PM
I'm still struggling with getting openweather module for HG working. It just won't respect my city (no place to put state), lat and lon. Although I live in NY, I keep getting put somewhere near Berlin PA, not Baldwin, NY.

Any suggestions are appreciated.
Title: Re: Open Weather
Post by: Tuicemen on February 18, 2019, 06:45:57 PM
How are you entering the configuration info?
configure/settings/weather and environment/ jkUtils-OpenWeather/options?
under city have you typed type Your zip code?
Title: Re: Open Weather
Post by: racerfern on February 18, 2019, 07:18:36 PM
Why would I type my zipcode? It came preconfigured with a city name, so I typed my city name. Nowhere has it ever said to type a zipcode until you just mentioned it.

BTW, even though it's currently 32F outside, now I have Weather in Santo Domingo DO and 78.8F (I wish) after typing my zipcode. If I move from 11510 my zip to 11520, next town over I go to Cadiz, ES.



Title: Re: Open Weather
Post by: Tuicemen on February 18, 2019, 08:00:42 PM
Type zipcode, US
Also go to Openweather and read up on the api  it tells you how to get the most accurate pulls
Title: Re: Open Weather
Post by: racerfern on February 19, 2019, 07:52:37 PM
I read the API, lots of stuff but nothing that points to a solution. Typing my zipcode, US yields a town about 30 miles away. This is silly.
Title: Re: Open Weather
Post by: Tuicemen on February 19, 2019, 08:04:00 PM
Did you download the City ID file and see if your city was listed in it?
There are lots of Baldwin citys listed in it for the US but not sure if you'd get any better results. :(
Title: Re: Open Weather
Post by: bkenobi on February 20, 2019, 11:25:34 AM
I don't use open weather but from memory, you have to pick a city that is in the list.  Every major city *should* be in there, but I found a minor city was not but a minuscule suburb was near me.  Just pick the one that's closest to your location.  I think it was Open Weather (could be wrong), but some of these locations didn't include full data.  I ended up with using the closest major city for one of my weather apps just to make sure that I had all data.
Title: Re: Open Weather
Post by: racerfern on February 20, 2019, 12:32:34 PM
Yes, I downloaded a bunch of city files. No help, so as suggested I'll pick the closest city.

Thanks.