Weather Software > WeatherLink/weatherlink.com by Davis Instruments

Weatherlink API v1 server error #12

<< < (2/4) > >>

Bashy:

--- Quote from: wvdkuil on October 05, 2021, 05:21:12 AM ---
--- Quote from: Bashy on October 05, 2021, 05:08:14 AM ---I was just following the link examples front he email it sent when I setup v1

https://api.weatherlink.com/v1/NoaaExt.xml?user=001D0A00DE6A&pass=DEMO&apiToken=demo0a002bc5272033001d0a002bc527

--- End quote ---
Hi Martin,

That is version one API: api.weatherlink.com/v1/NoaaExt.xml
That one is used for a Davis IP-logger or upload  by weatherlink.exe to weatherLink.com
That xml has  a lot of other goodies for weather-websites, such as high-lows.

v2 API is needed for WLL devices, totally different data, f.i. a lot of detailed rain-measurements.
But no high-lows for other weather-items such as temperature.

When you have multiple items in your station, you can check / find the correct data and station-number for your devices at https://pwsdashboard.com/wll/

Succes,
Wim

--- End quote ---

Thanks Wim, i just read this morning that the v1 is realtime where as v2 is to the minute? hence looking at V1
I will take a look at your PWS link, thank you

Bashy:

--- Quote from: johnd on October 05, 2021, 05:27:35 AM ---But accessing what type of station? v1 API is for legacy loggers etc and not WLL. v2 is more complicated but can do a lot more. I have some notes online at https://www.manula.com/manuals/pws/davis-kb/1/en/topic/v2-api-data-access-by-programs and of course the primary API reference is at weatherlink.github.io .

--- End quote ---

Hi John, like i just said to Wim,  i just read this morning that the v1 is realtime where as v2 is to the minute? and works with WLL (i think) hence looking at V1, i will have to try to find the reply to the post on here again, may take a while mind...

Bashy:
phew, didnt think it would be that easy to find, this is the reply i read, it was actually to you John
https://www.wxforum.net/index.php?topic=42787.msg436637#msg436637

Apologies, its not live, its to the minute and after reading it again, he's obviously doing a lot more than just using the link to view the data

Bashy:

--- Quote from: wvdkuil on October 05, 2021, 05:21:12 AM ---
--- Quote from: Bashy on October 05, 2021, 05:08:14 AM ---I was just following the link examples front he email it sent when I setup v1

https://api.weatherlink.com/v1/NoaaExt.xml?user=001D0A00DE6A&pass=DEMO&apiToken=demo0a002bc5272033001d0a002bc527

--- End quote ---
Hi Martin,

That is version one API: api.weatherlink.com/v1/NoaaExt.xml
That one is used for a Davis IP-logger or upload  by weatherlink.exe to weatherLink.com
That xml has  a lot of other goodies for weather-websites, such as high-lows.

v2 API is needed for WLL devices, totally different data, f.i. a lot of detailed rain-measurements.
But no high-lows for other weather-items such as temperature.

When you have multiple items in your station, you can check / find the correct data and station-number for your devices at https://pwsdashboard.com/wll/

Succes,
Wim

--- End quote ---

Hi again, i add the to keys to your page and it finds the station, but when i add the ID at the bottom of that page to check it, I get a 404 error


--- Code: ---Returncode =404

{"code":"404","message":"Unable to find weather station settings"}

--- End code ---

wvdkuil:

--- Quote from: Bashy on October 05, 2021, 05:52:45 AM ---
Hi again, i add the to keys to your page and it finds the station, but when i add the ID at the bottom of that page to check it, I get a 404 error


--- Code: ---Returncode =404
{"code":"404","message":"Unable to find weather station settings"}
--- End code ---

--- End quote ---

I have no idea what you refer to with "add the ID"
The station is a number such as 891234
Both the api-key and the secret key are long strings of characters.

Below  a more readable print of the WLL data, that data you can use in scripts to display the data.

--- Code: ---Array
(
    [sensors] => Array
        (
            [0] => Array
                (
                    [lsid] => 301024
                    [data] => Array
                        (
                            [0] => Array
                                (
                                    [temp_in] => 63.8
                                    [heat_index_in] => 61.3
                                    [dew_point_in] => 42.3
                                    [ts] => 1633427112
                                    [hum_in] => 45.4
                                )

                        )

                    [sensor_type] => 243
                    [data_structure_type] => 12
                )

            [1] => Array
                (
                    [lsid] => 301025
                    [data] => Array
                        (
                            [0] => Array
                                (
                                    [rx_state] => 0
                                    [wind_speed_hi_last_2_min] => 6.62
                                    [hum] => 72.8
                                    [wind_dir_at_hi_speed_last_10_min] => 149
                                    [wind_chill] => 62.4
                                    [rain_rate_hi_last_15_min_clicks] => 0
                                    [thw_index] => 61.8
                                    [wind_dir_scalar_avg_last_10_min] => 115
                                    [rain_size] => 2
                                    [uv_index] =>
                                    [wind_speed_last] => 1.5
                                    [rainfall_last_60_min_clicks] => 0
                                    [wet_bulb] => 56.6
                                    [rainfall_monthly_clicks] => 134
                                    [wind_speed_avg_last_10_min] => 2.12
                                    [wind_dir_at_hi_speed_last_2_min] => 149
                                    [rainfall_daily_in] => 0
                                    [wind_dir_last] => 96
                                    [rainfall_daily_mm] => 0
                                    [rain_storm_last_clicks] => 134
                                    [tx_id] => 5
                                    [rain_storm_last_start_at] => 1633112281
                                    [rain_rate_hi_clicks] => 0
                                    [rainfall_last_15_min_in] => 0
                                    [rainfall_daily_clicks] => 0
                                    [dew_point] => 53.6
                                    [rainfall_last_15_min_mm] => 0
                                    [rain_rate_hi_in] => 0
                                    [rain_storm_clicks] => 0
                                    [rain_rate_hi_mm] => 0
                                    [rainfall_year_clicks] => 3009
                                    [rain_storm_in] => 0
                                    [rain_storm_last_end_at] => 1633352460
                                    [rain_storm_mm] => 0
                                    [wind_dir_scalar_avg_last_2_min] => 136
                                    [heat_index] => 61.8
                                    [rainfall_last_24_hr_in] => 0
                                    [rainfall_last_60_min_mm] => 0
                                    [trans_battery_flag] => 0
                                    [rainfall_last_60_min_in] => 0
                                    [rain_storm_start_time] =>
                                    [rainfall_last_24_hr_mm] => 0
                                    [rainfall_year_in] => 23.692913
                                    [wind_speed_hi_last_10_min] => 6.62
                                    [rainfall_last_15_min_clicks] => 0
                                    [rainfall_year_mm] => 601.8
                                    [wind_dir_scalar_avg_last_1_min] => 142
                                    [temp] => 62.4
                                    [wind_speed_avg_last_2_min] => 1.87
                                    [solar_rad] =>
                                    [rainfall_monthly_mm] => 26.8
                                    [rain_storm_last_mm] => 26.8
                                    [wind_speed_avg_last_1_min] => 2.25
                                    [thsw_index] =>
                                    [rainfall_monthly_in] => 1.0551181
                                    [rain_rate_last_mm] => 0
                                    [rain_rate_last_clicks] => 0
                                    [rainfall_last_24_hr_clicks] => 0
                                    [rain_storm_last_in] => 1.0551181
                                    [rain_rate_last_in] => 0
                                    [rain_rate_hi_last_15_min_mm] => 0
                                    [rain_rate_hi_last_15_min_in] => 0
                                    [ts] => 1633427112
                                )

                        )

                    [sensor_type] => 37
                    [data_structure_type] => 10
                )

            [2] => Array
                (
                    [lsid] => 301022
                    [data] => Array
                        (
                            [0] => Array
                                (
                                    [battery_voltage] => 6833
                                    [wifi_rssi] =>
                                    [network_error] =>
                                    [ip_v4_gateway] => 192.168.0.1
                                    [bluetooth_version] =>
                                    [bgn] =>
                                    [firmware_version] => 1596147041
                                    [local_api_queries] => 1698776
                                    [rx_bytes] => 395210974
                                    [health_version] => 1
                                    [radio_version] => 621020416
                                    [ip_address_type] => 1
                                    [link_uptime] => 3987211
                                    [input_voltage] => 4428
                                    [tx_bytes] => 1016616080
                                    [ip_v4_netmask] => 255.255.255.0
                                    [rapid_records_sent] => 2645798
                                    [uptime] => 10206964
                                    [touchpad_wakeups] => 73
                                    [ip_v4_address] => 192.168.0.128
                                    [bootloader_version] => 1550707628
                                    [espressif_version] => 1534381024
                                    [dns_type_used] =>
                                    [network_type] => 2
                                    [ts] => 1633427100
                                )

                        )

                    [sensor_type] => 504
                    [data_structure_type] => 15
                )

            [3] => Array
                (
                    [lsid] => 301023
                    [data] => Array
                        (
                            [0] => Array
                                (
                                    [bar_absolute] => 29.53
                                    [bar_sea_level] => 29.588
                                    [bar_offset] => -0.001
                                    [bar_trend] => -0.076
                                    [ts] => 1633427112
                                )

                        )

                    [sensor_type] => 242
                    [data_structure_type] => 12
                )

        )

    [generated_at] => 1633427845
    [station_id] => 87349
)
--- End code ---


Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version