WXforum.net
Weather Software => Station Software Development => Topic started by: cheeroip on October 30, 2020, 05:05:16 PM
-
I missed having a widget for the Ambient Weather data.
[ You are not allowed to view attachments ]
AW Widget app for Android 1.5
https://play.google.com/store/apps/details?id=com.dtvrc.awwidget
http://dtvrc.com/2020/10/20/ambient-weather-android-widget-app-companion/
LAST UPDATE: 2020-11-05 (13:28:43)
[ You are not allowed to view attachments ]
[ You are not allowed to view attachments ]
It's pretty tricky to test Android Widgets so any feedback would be very helpful.
https://t.me/awwidget
https://discord.com/invite/pCTzZZN
-
Installed on my one year old Samsung 8 inch tablet it crashes as soon as it finds station.
SM-T387W Tab.
Android 10.
I will try on phone. I can give you more info. What might interest you?
-
Logged onto Discord
Live for an hour or two
Same result on phone
-
Installed on my one year old Samsung 8 inch tablet it crashes as soon as it finds station.
SM-T387W Tab.
Android 10.
I will try on phone. I can give you more info. What might interest you?
Thanks for taking the time to download and test the app.
nerd notes:
I could have skipped some validation since I wrote the JSON parsing before Ambient Weather moved the station location and the station name arond .
Should be a pretty easy troubleshoot.
Feel free to share the APIKey used to configure the app here or I suggest a private message on telegram or discord.
-
Seem Ambient Weather return (at least?) 2 different JSON. Not sure why don't return a model or version field or at least return the same fields?
[{ [{
"macAddress":"cheeroip MAC" "macAddress":"davidmc36 MAC",
"lastData": { "lastData":{
"dateutc":1599930600000, "dateutc":1604248440000,
"winddir":358, "winddir":143,
"windspeedmph":0.9, "windspeedmph":6.9,
"windgustmph":1.1, "windgustmph":21,
"maxdailygust":8.1, "maxdailygust":21,
"tempf":79.3, "windgustdir":205,
"hourlyrainin":0, "winddir_avg2m":204,
"dailyrainin":0, "windspdmph_avg2m":6.9,
"weeklyrainin":0.22, "winddir_avg10m":185,
"monthlyrainin":0.22, "windspdmph_avg10m":6.5,
"totalrainin":85.44, "tempf":47.7,
"baromrelin":30.02, "humidity":73,
"baromabsin":29.42, "baromrelin":29.67,
"humidity":85, "baromabsin":29.39,
"tempinf":78.4, "tempinf":72,
"humidityin":51, "humidityin":45,
"uv":1, "hourlyrainin":0,
"solarradiation":166.5, "dailyrainin":0,
"feelsLike":80.93, "monthlyrainin":0,
"dewPoint":74.39, "yearlyrainin":18.97,
"feelsLikein":78.3, "battin":0,
"dewPointin":58.8, "battout":0,
"lastRain":"2020-09-10T08:59:00.000Z", "feelsLike":44.47,
"tz":"America/New_York", "dewPoint":39.48,
"date":"2020-09-12T17:10:00.000Z" "feelsLikein":71,
} "dewPointin":49.5,
... "lastRain":"2020-10-27T15:32:00.000Z",
... "tz":"America/Toronto",
"date":"2020-11-01T16:34:00.000Z"
},
...
...
Specifically I was expecting the <weeklyrainin> field missing in davidmc36 JSON.
I wonder if they will ever return those battery values? they seem interesting.
Ideally an application should never crash on receiving unexpected data but problem solving on the field and in emergency mode is just more fun, I'm a big fan of the "happy little accidents school and I like sharing the process with my customers/users.
I philosophically prefer an application crash than showing wrong data.
Thanks to davidmc36 for the feedback.
-
ok, Deployed a new version.
I guess I'll just have to wait from people feedback if there are other differences in how Ambient Weather return their JSON.
I added a "stat for nerds" to help highlight the differences since I'm thinking to support different Station brands.
[ You are not allowed to view attachments ]
-
I just got around to trying this again.
It works now on my Samsung S10e, no more crashing upon station find.
-
I just got around to trying this again.
It works now on my Samsung S10e, no more crashing upon station find.
Weird, I still have to update it with all the protocol exceptions...
Anyway thanks for downloading it and for the feedback.
The Android widget and the android dashboard are probably going to remain free/without Ads forever and Ill use them to promote the 99c windows store app.
Let me know if you want a free copy of the Windows store version.
https://www.wxforum.net/index.php?topic=40779.0
-
I saw that thread before but glossed over. It is in the W Store. My only W10 machines would not be available to us efor that.
Can it go on W7 machine?
-
I saw that thread before but glossed over. It is in the W Store. My only W10 machines would not be available to us efor that.
Can it go on W7 machine?
Nope, sorry. It's a UWP application. In theory should works on W10PC, Xbox One, Microsoft HoloLens, Internet of Things and windows phones. (lol).
-
Is there a way to display data from other sensors in the widget? I only see the data for the outside temperature and inside temperature. I have a sensor in my pool and another in a tortoise house that I'd like to be able to view with the widget.
-
thanks for trying the app out.
The widget settings should show the "raw" data with all the sensors reported by the station.
-
Thanks for the reply! I am not sure if there's something I am missing but there seems to be a lot of data that isn't shown. I'm a very inexperienced programmer but I was able to get a very basic Python app working that pulled the data from the device through the API. I am attaching two screenshots from your Widget App (API key and MAC address were redacted) as well as the data I was able to pull from the API in a text file (API keys, MAC Address, and Location information has been REDACTED). The two bits of data I am interested in are temp2f and temp3f. In the app it only seems to be showing the value for tempf and tempinf.
[ You are not allowed to view attachments ]
[ You are not allowed to view attachments ]
[ You are not allowed to view attachments ]
-
Yes you're right.
I should have just dump the whole result in the setting page instead of trying to gently parse the XML.
The protocol at the time was a bit confusing and people at Ambient Weather didn't seem to be thrilled to have to deal with a "competitive" (?) app.