Author Topic: Ambient Weather Android Widget APP  (Read 910 times)

0 Members and 1 Guest are viewing this topic.

Offline cheeroip

  • Holocene human / dev / tinkerer
  • Senior Member
  • **
  • Posts: 66
  • Grumpy old italian
    • DTVRC
Ambient Weather Android Widget APP
« 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

« Last Edit: November 05, 2020, 01:28:54 PM by cheeroip »

Offline davidmc36

  • He who dies with the most toys wins!
  • Forecaster
  • *****
  • Posts: 987
  • FN25ie61jw
    • MorewoodW34
Re: Ambient Weather Android Widget APP
« Reply #1 on: October 30, 2020, 05:31:23 PM »
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?

Offline davidmc36

  • He who dies with the most toys wins!
  • Forecaster
  • *****
  • Posts: 987
  • FN25ie61jw
    • MorewoodW34
Re: Ambient Weather Android Widget APP
« Reply #2 on: October 30, 2020, 06:00:46 PM »
Logged onto Discord

Live for an hour or two

Same result on phone

Offline cheeroip

  • Holocene human / dev / tinkerer
  • Senior Member
  • **
  • Posts: 66
  • Grumpy old italian
    • DTVRC
Re: Ambient Weather Android Widget APP
« Reply #3 on: October 31, 2020, 02:23:47 PM »
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.



Offline cheeroip

  • Holocene human / dev / tinkerer
  • Senior Member
  • **
  • Posts: 66
  • Grumpy old italian
    • DTVRC
Re: Ambient Weather Android Widget APP
« Reply #4 on: November 01, 2020, 02:30:47 PM »
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?

                                                 
Code: [Select]
[{                                             [{
  "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.

Offline cheeroip

  • Holocene human / dev / tinkerer
  • Senior Member
  • **
  • Posts: 66
  • Grumpy old italian
    • DTVRC
Re: Ambient Weather Android Widget APP
« Reply #5 on: November 05, 2020, 01:42:07 PM »
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 ]

Offline davidmc36

  • He who dies with the most toys wins!
  • Forecaster
  • *****
  • Posts: 987
  • FN25ie61jw
    • MorewoodW34
Re: Ambient Weather Android Widget APP
« Reply #6 on: January 12, 2021, 10:18:53 AM »
I just got around to trying this again.

It works now on my Samsung S10e, no more crashing upon station find.

Offline cheeroip

  • Holocene human / dev / tinkerer
  • Senior Member
  • **
  • Posts: 66
  • Grumpy old italian
    • DTVRC
Re: Ambient Weather Android Widget APP
« Reply #7 on: January 12, 2021, 06:49:50 PM »
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


Offline davidmc36

  • He who dies with the most toys wins!
  • Forecaster
  • *****
  • Posts: 987
  • FN25ie61jw
    • MorewoodW34
Re: Ambient Weather Android Widget APP
« Reply #8 on: January 12, 2021, 09:07:10 PM »
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?

Offline cheeroip

  • Holocene human / dev / tinkerer
  • Senior Member
  • **
  • Posts: 66
  • Grumpy old italian
    • DTVRC
Re: Ambient Weather Android Widget APP
« Reply #9 on: January 14, 2021, 12:48:25 PM »
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).