Page 7 of 10

Re: Davis AirLink Professional Air Quality Sensor (7210UK)

Posted: Sun 18 Oct 2020 6:35 pm
by SteveFitz1
I'm thinking about purchasing the AirLink but have a question about beteljuice's script. There is a comment at the beginning of betel_AQ_davis.php that says "(data) json file should be regularly uploaded to webspace !!!" I'm assuming this data file is coming from the Airlink. What exactly is the process to move data from the Airlink to the "webspace"? How often is "regularly"?

Thanks,

Steve

Re: Davis AirLink Professional Air Quality Sensor (7210UK)

Posted: Sun 18 Oct 2020 7:04 pm
by Mapantz
Air quality is bad here at the moment. Stagnant air and smoke around.
Screenshot 2020-10-18 200251.png
Dorchester and Ringwood are within 25 miles and they're recording high levels too.

Re: Davis AirLink Professional Air Quality Sensor (7210UK)

Posted: Sun 18 Oct 2020 8:18 pm
by beteljuice
SteveFitz1 wrote: .... What exactly is the process to move data from the Airlink to the "webspace"? How often is "regularly"?
One for Mapantz to comment on (seeing as he's done it ;) )

Basically your PC is interrogating the AirLink and you want to copy that file to your webspace.

... but things may all change due to new <#webtags> or perhaps realtime.txt ?

Re: Davis AirLink Professional Air Quality Sensor (7210UK)

Posted: Sun 18 Oct 2020 8:33 pm
by SteveFitz1
beteljuice wrote: Sun 18 Oct 2020 8:18 pm
SteveFitz1 wrote: .... What exactly is the process to move data from the Airlink to the "webspace"? How often is "regularly"?
.... Basically your PC is interrogating the AirLink and you want to copy that file to your webspace.
I'm guessing my PHP script on my host could access the Airlink directly via Dynamic DNS and create a file or update a DB on the host, thereby bypassing the PC completely. Am I understanding that correctly?

Steve

Re: Davis AirLink Professional Air Quality Sensor (7210UK)

Posted: Sun 18 Oct 2020 8:45 pm
by Mapantz
I opened the port up for AirLink on my router like I have with my webcam. I'm already using a ddns, so I just used that to create a url

http://ddns_here/v1/current_conditions

I wouldn't recommend it, but it's my preference. I suspect a curl script would be needed to download the json data and then upload it to your hosting, otherwise.

Re: Davis AirLink Professional Air Quality Sensor (7210UK)

Posted: Sun 18 Oct 2020 8:51 pm
by SteveFitz1
Mapantz wrote: Sun 18 Oct 2020 8:45 pm I opened the port up for AirLink on my router like I have with my webcam. I'm already using a ddns, so I just used that to create a url

http://ddns_here/v1/current_conditions

I wouldn't recommend it, but it's my preference. I suspect a curl script would be needed to download the json data and then upload it to your hosting, otherwise.
I've got the same setup for webcam w/ddns on my host. I think the cURL route would be easiest for me.

Does the AirLink have the ability to set a fixed IP address? Is a specific port # required to open in the router for it?

Steve

Re: Davis AirLink Professional Air Quality Sensor (7210UK)

Posted: Sun 18 Oct 2020 9:34 pm
by beteljuice
@Map

You've gone from very clean air to choke level :o

@ 22:29 18th Oct

now µm10 84.32 µg/m3 8 Poor

now µm2.5 72.29 µg/m3 10 Very poor

Re: Davis AirLink Professional Air Quality Sensor (7210UK)

Posted: Sun 18 Oct 2020 9:39 pm
by Mapantz
beteljuice wrote: Sun 18 Oct 2020 9:34 pm @Map

You've gone from very clean air to choke level :o

@ 22:29 18th Oct

now µm10 84.32 µg/m3 8 Poor

now µm2.5 72.29 µg/m3 10 Very poor
Yep - The air is dead still and people's fires are all lit up. Smells pretty bad out there!
SteveFitz1 wrote: Sun 18 Oct 2020 8:51 pm
I've got the same setup for webcam w/ddns on my host. I think the cURL route would be easiest for me.

Does the AirLink have the ability to set a fixed IP address? Is a specific port # required to open in the router for it?

Steve
I don't think so. I set a reservation up for it so that it kept the same internal IP address.

http port 80.

:)

Re: Davis AirLink Professional Air Quality Sensor (7210UK)

Posted: Wed 21 Oct 2020 8:53 pm
by SteveFitz1
I received my AirLink today. Got it set up and reporting data. I wrote a script to access the AirLink directly and it works great when I use its local IP address to access it.
http://192.168.xxx.yyy/v1/current_conditions

However, when I try to access it via my ddns, I get nothing back.
http://my.ddns.com/v1/current_conditions

I have other programs using this ddns, so I'm wondering if it's my port-forwarding. I used port 80 when forwarding the port the AirLink IP address. Just wondering if anyone has suggestions about what I may have overlooked.

Steve

Re: Davis AirLink Professional Air Quality Sensor (7210UK)

Posted: Wed 21 Oct 2020 9:38 pm
by Mapantz
SteveFitz1 wrote: Wed 21 Oct 2020 8:53 pm I received my AirLink today. Got it set up and reporting data. I wrote a script to access the AirLink directly and it works great when I use its local IP address to access it.
http://192.168.xxx.yyy/v1/current_conditions

However, when I try to access it via my ddns, I get nothing back.
http://my.ddns.com/v1/current_conditions

I have other programs using this ddns, so I'm wondering if it's my port-forwarding. I used port 80 when forwarding the port the AirLink IP address. Just wondering if anyone has suggestions about what I may have overlooked.

Steve
Is it the same if you replace your ddns with your external IP address?

Make sure you're not port forwarding 80 on any other devices and that it's both tcp & udp.

my.ddns.com doesn't resolve to anything btw.

Re: Davis AirLink Professional Air Quality Sensor (7210UK)

Posted: Thu 22 Oct 2020 2:33 am
by SteveFitz1
Mapantz wrote: Wed 21 Oct 2020 9:38 pm Is it the same if you replace your ddns with your external IP address?

Make sure you're not port forwarding 80 on any other devices and that it's both tcp & udp.

my.ddns.com doesn't resolve to anything btw.
I was finally able to do this by using port 8080 as the incoming port to the router, then using port 80 as the outgoing port to the AirLink. This works great now. I'm guessing that perhaps my ISP was blocking incoming traffic on port 80 since 8080 works fine.

Re: Davis AirLink Professional Air Quality Sensor (7210UK)

Posted: Thu 22 Oct 2020 8:24 am
by mcrossley
Some routers already allocate port 80 to their management interface?
Or you already have forward to something else for port 80?

Re: Davis AirLink Professional Air Quality Sensor (7210UK)

Posted: Thu 22 Oct 2020 9:09 am
by HansR
Do you try to reach the AirLink on the LAN from a machine on the LAN?
Seems to me the ddns address can't be reached from the inside of the LAN.
If you try over G4 by phone you might see it though. Might have nothing to do with the port probably.

Re: Davis AirLink Professional Air Quality Sensor (7210UK)

Posted: Fri 23 Oct 2020 2:14 am
by SteveFitz1
HansR wrote: Thu 22 Oct 2020 9:09 am Do you try to reach the AirLink on the LAN from a machine on the LAN?
Seems to me the ddns address can't be reached from the inside of the LAN.
If you try over G4 by phone you might see it though. Might have nothing to do with the port probably.
I am able to reach the AirLink on the LAN from a machine on the LAN both by accessing the AirLink via its IP Address and by its DDNS address.

Re: Davis AirLink Professional Air Quality Sensor (7210UK)

Posted: Thu 05 Nov 2020 6:19 pm
by Mapantz
Bonfire night!
Screenshot 2020-11-05 181825.png