I would like to try to set up a script that will parse the tide chart I have attached. I keep the tide chart in my html directory. It is a little beyond my knowledge of parsing, so I need some help. What I would like to ultimately accomplish is to populate a device with the daily tide info. In order to do that, I would have to do the following:
1. Have the script compare today's date with the date in the tide chart to select the correct date. The date is in a wierd format, but I don't know if that makes any difference.
2. Have the script choose the second and third tide listings out of the three or four total listings for the day. Most days have 4 tide times, but some days only have 3. I only want to choose the 2nd and 3rd times no matter what.
3. Have the script populate device T1 with today's tide info, including date and times of tides.
If anyone feels like it, maybe you can show me what to do. I appreciate it. Thanks.
1. Have the script compare today's date with the date in the tide chart to select the correct date. The date is in a wierd format, but I don't know if that makes any difference.
2. Have the script choose the second and third tide listings out of the three or four total listings for the day. Most days have 4 tide times, but some days only have 3. I only want to choose the 2nd and 3rd times no matter what.
3. Have the script populate device T1 with today's tide info, including date and times of tides.
If anyone feels like it, maybe you can show me what to do. I appreciate it. Thanks.
Comment