-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OW move from 2.5 to 3.0 call #200
Comments
Yes, we use 2.5. There's a PR open for OW3 I need to review. |
Thank you for all your work. One question: Side note; I see homeassistant "Smart Irrigation" HACS integration using OW3 API. |
On the order of 2 per day.
…On Fri, May 17, 2024, 1:38 PM gargamelonly ***@***.***> wrote:
Thank you for all your work.
Please update when it is released.
One question:
Since OW3 API requires a subscription (and credit card details) with 1000
free calls a month (at this point in time).
Could you please note how many calls a day does sprinklers_pi request?
Side note; I see homeassistant "Smart Irrigation" HACS integration using
OW3 API.
—
Reply to this email directly, view it on GitHub
<#200 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABIJXCPDBAWNCXTMWEWLLDZCY6CHAVCNFSM6AAAAABGPYBOEKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJYGA4TQOJZGY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Just got an email that OW API 2.5 will stop working today. Did you get it too? "We would like to inform you that we started One Call 2.5 deprecation, and your access to the product will be stopped on October 7, 2024." |
There's a branch with support for OW 3 here: It's what I'm currently using and it seems to be reasonable so far, but I'm at the end of my watering season (about to blow out sprinklers to protect against freezing). |
I don't understand how do you use it? |
Personally, I just built it on a spare SD card and started fresh. |
@nhorvath |
I don't have time to clean this up and merge yet. I'm pretty sure the new code is not completely functional. I created a release candidate off the branch for you to try. Backup first!
https://github.com/rszimm/sprinklers_pi/releases/tag/v2.0.0rc1 |
Thank you so much. building... |
just cosmetics: I am also seeing "Powered by Sprinklers Pi V1.7.0" |
when i looked at it either the previous day or current day rainfall was suspect to me. i forget which. yeah the version number won't update until i do a real release. |
I compared the code differences between 1.7.0
|
the api changed though
…On Wed, Oct 23, 2024, 3:46 AM gargamelonly ***@***.***> wrote:
I compared the code differences between 1.7.0 and 2.0.0rc1 and they are
identical except one section dealing to i==0 which did not exist in 1.7.0
If the rainfall in 1.7.0 worked ok then I see no reason for it not to work
correctly now with 3.0 API calls.
if (i==0){
for (auto &hour : data["data"]) {
rain = 0;
temp += hour["temp"].get<float>();
wind += hour["wind_speed"].get<float>();
if (hour.count("rain") > 0 && hour["rain"].count("1h") > 0) {
rain = hour["rain"]["1h"].get<float>();
precip += rain;
}
humidity = hour["humidity"].get<short>();
/*
trace("collected the following values:\ntemp: %0.2f\nwind: %0.2f\nprecip: %0.2f\nhumid: %0.2f\n",
hour["temp"].get<float>(), hour["wind_speed"].get<float>(), rain, humidity);
trace("totals so far:\ntemp: %0.2f\nwind: %0.2f\nprecip: %0.2f\n\n",
temp, wind, precip);
*/
if (humidity > ret->maxhumidity) {
ret->maxhumidity = humidity;
}
if (humidity < ret->minhumidity) {
ret->minhumidity = humidity;
}
if (++i > 24) {
break;
}
}
}
—
Reply to this email directly, view it on GitHub
<#200 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABIJXDNME65V6S66MPPFE3Z45H37AVCNFSM6AAAAABGPYBOEKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMZRGE4DAMJTGQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Here are a couple of log lines from the latest watering (we have no rain yet).
|
pretty sure that's normal flaky pi networking.
…On Wed, Oct 23, 2024 at 10:02 AM gargamelonly ***@***.***> wrote:
Here are a couple of log lines from the latest watering (we have no rain
yet).
1. What are the "ERROR!"s I see each minute? They existed even with
1.7.0
2. The line with [json.exception.type_error.302] type must be number,
but is null I assume it exists because when there is no rain to report
the parameter is not reported. Is this correct?
2024/10/23 16:25:51 ERROR!
2024/10/23 16:26:51 Got a client
2024/10/23 16:26:51 ERROR!
2024/10/23 16:27:51 Got a client
2024/10/23 16:27:51 ERROR!
2024/10/23 16:28:52 Got a client
2024/10/23 16:28:52 ERROR!
2024/10/23 16:29:53 Got a client
2024/10/23 16:29:53 ERROR!
2024/10/23 16:30:00 Get Today's Weather
2024/10/23 16:30:01 curl error output:
2024/10/23 16:30:01 Parsed the following values:
temp: 72
wind: 12.70
precip: 0.00
uv: 0.40
2024/10/23 16:30:01 Get Today's Weather for the hours between midnight and now
2024/10/23 16:30:06 curl error output:
2024/10/23 16:30:06 [json.exception.type_error.302] type must be number, but is null
2024/10/23 16:30:06 Parsed the following values:
temp: 68
wind: 6.90
precip: 0.00
uv: 0.40
2024/10/23 16:30:06 Get Yesterday's Weather
2024/10/23 16:30:07 curl error output:
2024/10/23 16:30:07 [json.exception.type_error.302] type must be number, but is null
2024/10/23 16:30:07 Parsed the following values:
temp: 76
wind: 21.90
precip: 0.00
uv: 0.40
2024/10/23 16:30:07 Adjusting H(-4)T(24)R(0):120
2024/10/23 16:30:07 Turning on Zone 4
2024/10/23 16:30:53 Got a client
2024/10/23 16:30:53 ERROR!
2024/10/23 16:31:53 Got a client
2024/10/23 16:31:53 ERROR!
2024/10/23 16:32:53 Got a client
2024/10/23 16:32:53 ERROR!
2024/10/23 16:33:53 Got a client
2024/10/23 16:33:53 ERROR!
2024/10/23 16:34:53 Got a client
2024/10/23 16:34:53 ERROR!
2024/10/23 16:35:54 Got a client
2024/10/23 16:35:54 ERROR!
2024/10/23 16:36:27 Got a client
—
Reply to this email directly, view it on GitHub
<#200 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABIJXGPOJZ6QCAP7EEJEQTZ46T7BAVCNFSM6AAAAABGPYBOEKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMZSGMYTANJVHA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I found out that it's not flaky pi networking. The ERRORs are because I have an OpenHAB automation pinging the pi and the service on port 8080 with no web request. It is just to check that the service is running. Detect and send me a Telegram alert if the service crashed (wifi disconnect or sd card got corrupted) which will cause watering to stop. Do you have an idea about the json exception? |
likely one of the fields we use isn't populated in the new api all the time.
…On Thu, Oct 24, 2024, 5:02 AM gargamelonly ***@***.***> wrote:
I found out that it's not flaky pi networking. The ERRORs are because I
have an OpenHAB automation pinging the pi and the service on port 8080 with
no web request. It is just to check that the service is running. Detect and
send me a Telegram alert if the service crashed (wifi disconnect or sd card
got corrupted) which will cause watering to stop.
Do you have an idea about the json exception?
—
Reply to this email directly, view it on GitHub
<#200 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABIJXDOBV6NO7CS5JCLFX3Z5CZUFAVCNFSM6AAAAABGPYBOEKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMZUG4YDIMJVHE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@keithfisher123 And another question for @keithfisher123 ; for curiosity, why did you add |
After a couple of days with the ow3 rc2.0 I come to a conclusion that it is not working as expected. The API change for OW3 is when using the "timestamp" specific parameter. |
How do I modify the following code so it is conditional if the "rain" parameter does not exist then skip parsing it?
|
Any affect on SprinklersPi due to the following change:
"We would like to inform you about our plans to complete the migration from One Call 2.5 to One Call 3.0 that started 2 years ago. In line with this, access to One Call 2.5 will be finally closed in June 2024.
One Call 3.0 provides you with significantly advanced business-demanded features such as a minute forecast for 1 hour, 4 days forecast for any timestamp, a daily forecast for 8 days, including a human-readable summary, historical data (45-year archive) for timestamps, and with daily aggregation, 1.5-year long-term forecast with daily aggregation, and others."
The text was updated successfully, but these errors were encountered: