Home AMX User Forum AMX Control Products
Options

Dynamic Images

Is there any way to view the dynamic images URLs stored on a TP in realtime? The current Sat/Radar animation module I'm working on I'm updating the filenames of some of the dynamic images w/ the ^RMF command with new filename I retrieve from parsing an HTML page from NOAA. In diagnostics w/ my debug variable on I get all the proper send_string 0's notification through out the entire process.
Line    182 :: dvRAD_SAT rcvd string. 31675 in cRAD_SATBuf. line-<742>$0D$0A - 21:09:13
Line    183 :: dvRAD_SAT found </HTML> in string. 31675bits rcvd & sent to parser. line-<749>$0D$0A - 21:09:13
Line    184 :: RAD_SAT Parsed & stored >20070613_2310< date & time for image 1. line-<488>$0D$0A - 21:09:13
Line    185 :: RAD_SAT Parsed & stored >20070613_2315< date & time for image 2. line-<488>$0D$0A - 21:09:13
Line    186 :: RAD_SAT Parsed & stored >20070613_2325< date & time for image 3. line-<488>$0D$0A - 21:09:13
Line    187 :: RAD_SAT Parsed & stored >20070613_2332< date & time for image 4. line-<488>$0D$0A - 21:09:13
Line    188 :: RAD_SAT Parsed & stored >20070613_2340< date & time for image 5. line-<488>$0D$0A - 21:09:13
Line    189 :: RAD_SAT Parsed & stored >20070613_2345< date & time for image 6. line-<488>$0D$0A - 21:09:13
Line    190 :: RAD_SAT Parsed & stored >20070614_0015< date & time for image 7. line-<488>$0D$0A - 21:09:13
Line    191 :: RAD_SAT Parsed & stored >20070614_0045< date & time for image 8. line-<488>$0D$0A - 21:09:13
Line    192 :: RAD_SAT Parsed & stored >20070614_0055< date & time for image 9. line-<488>$0D$0A - 21:09:13
Line    193 :: RAD_SAT Parsing Completed. line-<505>$0D$0A - 21:09:13
Line    194 :: RAD_SAT ^RMF Ani_Sat_1 filename to 20070613_2310_ALB_vis.jpg. line-<524>$0D$0A - 21:09:13
Line    195 :: RAD_SAT Exact string: ^RMF-Ani_Sat_1,%F20070613_2310_ALB_vis.jpg - 21:09:13
Line    196 :: RAD_SAT ^RMF Ani_Sat_2 filename to 20070613_2315_ALB_vis.jpg. line-<524>$0D$0A - 21:09:13
Line    197 :: RAD_SAT Exact string: ^RMF-Ani_Sat_2,%F20070613_2315_ALB_vis.jpg - 21:09:13
Line    198 :: RAD_SAT ^RMF Ani_Sat_3 filename to 20070613_2325_ALB_vis.jpg. line-<524>$0D$0A - 21:09:13
Line    199 :: RAD_SAT Exact string: ^RMF-Ani_Sat_3,%F20070613_2325_ALB_vis.jpg - 21:09:13
Line    200 :: RAD_SAT ^RMF Ani_Sat_4 filename to 20070613_2332_ALB_vis.jpg. line-<524>$0D$0A - 21:09:13
Line    201 :: RAD_SAT Exact string: ^RMF-Ani_Sat_4,%F20070613_2332_ALB_vis.jpg - 21:09:13
Line    202 :: RAD_SAT ^RMF Ani_Sat_5 filename to 20070613_2340_ALB_vis.jpg. line-<524>$0D$0A - 21:09:13
Line    203 :: RAD_SAT Exact string: ^RMF-Ani_Sat_5,%F20070613_2340_ALB_vis.jpg - 21:09:13
Line    204 :: RAD_SAT ^RMF Ani_Sat_6 filename to 20070613_2345_ALB_vis.jpg. line-<524>$0D$0A - 21:09:13
Line    205 :: RAD_SAT Exact string: ^RMF-Ani_Sat_6,%F20070613_2345_ALB_vis.jpg - 21:09:13
Line    206 :: RAD_SAT ^RMF Ani_Sat_7 filename to 20070614_0015_ALB_vis.jpg. line-<524>$0D$0A - 21:09:13
Line    207 :: RAD_SAT Exact string: ^RMF-Ani_Sat_7,%F20070614_0015_ALB_vis.jpg - 21:09:13
Line    208 :: RAD_SAT ^RMF Ani_Sat_8 filename to 20070614_0045_ALB_vis.jpg. line-<524>$0D$0A - 21:09:13
Line    209 :: RAD_SAT Exact string: ^RMF-Ani_Sat_8,%F20070614_0045_ALB_vis.jpg - 21:09:13
Line    210 :: RAD_SAT ^RMF Ani_Sat_9 filename to 20070614_0055_ALB_vis.jpg. line-<524>$0D$0A - 21:09:13
Line    211 :: RAD_SAT Exact string: ^RMF-Ani_Sat_9,%F20070614_0055_ALB_vis.jpg - 21:09:13
Line    212 :: ADDS - Satellite TP images refreshed! line-<759>$0D$0A - 21:09:13
Line    213 :: ADDS - Satellite Update Complete! line-<760>$0D$0A - 21:09:13

and in notification I get:
Line      6 :: Output Channel:On - From [10002:28:1] - Channel 1  - 21:11:03
Line      7 :: Command To [10002:28:1]-[^RMF-Ani_Sat_1,%F20070613_2310_ALB_vis.jpg] - 21:11:04
Line      8 :: Command To [10002:28:1]-[^RMF-Ani_Sat_2,%F20070613_2315_ALB_vis.jpg] - 21:11:04
Line      9 :: Command To [10002:28:1]-[^RMF-Ani_Sat_3,%F20070613_2325_ALB_vis.jpg] - 21:11:04
Line     10 :: Command To [10002:28:1]-[^RMF-Ani_Sat_4,%F20070613_2332_ALB_vis.jpg] - 21:11:04
Line     11 :: Command To [10002:28:1]-[^RMF-Ani_Sat_5,%F20070613_2340_ALB_vis.jpg] - 21:11:04
Line     12 :: Command To [10002:28:1]-[^RMF-Ani_Sat_6,%F20070613_2345_ALB_vis.jpg] - 21:11:04
Line     13 :: Command To [10002:28:1]-[^RMF-Ani_Sat_7,%F20070614_0015_ALB_vis.jpg] - 21:11:04
Line     14 :: Command To [10002:28:1]-[^RMF-Ani_Sat_8,%F20070614_0045_ALB_vis.jpg] - 21:11:04
Line     15 :: Command To [10002:28:1]-[^RMF-Ani_Sat_9,%F20070614_0055_ALB_vis.jpg] - 21:11:04
Line     16 :: Command To [10002:28:1]-[^RFRP-Ani_Sat_1] - 21:11:04
Line     17 :: Command To [10002:28:1]-[^RFRP-Ani_Sat_2] - 21:11:04
Line     18 :: Command To [10002:28:1]-[^RFRP-Ani_Sat_3] - 21:11:04
Line     19 :: Command To [10002:28:1]-[^RFRP-Ani_Sat_4] - 21:11:04
Line     20 :: Command To [10002:28:1]-[^RFRP-Ani_Sat_5] - 21:11:04
Line     21 :: Command To [10002:28:1]-[^RFRP-Ani_Sat_6] - 21:11:04
Line     22 :: Command To [10002:28:1]-[^RFRP-Ani_Sat_7] - 21:11:04
Line     23 :: Command To [10002:28:1]-[^RFRP-Ani_Sat_8] - 21:11:04
Line     24 :: Command To [10002:28:1]-[^RFRP-Ani_Sat_9] - 21:11:04

all appears to be doing what I want ecept I don't get the images that I should because either the filename isn't being updated w/in the TP or the refresh isn't occurring or a little of both. Now I'm assuming the TPs buffer can store all these received commands in queue and handle them properly w/o requiring any sort of delay between send_commands but It might not.

I can't seem to find a way to verify what the TP is doing once it receives these commands other than uploading the TP program back into to TPD4 but that takes quite a while do accomplish. Doesn't appear to be any means through telnet to look at this info and there's ftp ability to look at the file structure and files.

With the ^RMF command I'm just changing the filename, while the url and path remains the same. In the filename I'm updating the date & time stamp and then picking what satellite region to view and what type of image to view (visible,ir,water vapor). If I take the filename that I'm updating the dynamic image to and open in a browser I have no problems.

The odd thing is that some times it works while other times it doesn't which makes me think it's a flaky TP thing.

Any thoughts.

Comments

  • Options
    ericmedleyericmedley Posts: 4,177
    This may or may not relate to the problem but I'm throwing it out because it too involves changing touch panel graphics.

    I have a little routine that will periodically change the background image on the touch panels. It's more or less like a slide show kinda like the screen saver in Windows except it's a background image. Also, I do little Easter Eggs like birthdays and anniveraries and whatnot.

    I've noticed that after some period of time (days) the panel will just begin to ignore the commands to change the images.

    I can see the commands go to the touch panels and everything works normally otherwise. The panel will also ignore manually sent commands when it's in its stubborn mode.

    If I reboot the panel or reboot the master the images will begin to change again.

    I suspect there are still issue with how the panels deal with graphics.

    I too have toyed with creating a weather radar loop on the panels with little to no success.

    Sorry, I don't have any ideas or solutions. I'm just chiming in hoping to possibly add more clues toward solving the mystery.
  • Options
    ericmedleyericmedley Posts: 4,177
    Oh, one thing I did notice in your event log is that you seem to be sending quite a few commands to the touch panel at once. I've found that I cannot send more than 2-3 commands to the touch panel at one time. They just aren't fast enough to handle too much ordering around.


    What I've done is create a module and virtual device that has the sole function of slowing down and buffering commands to the TPs. When I need to send a whole slew of commands to a touch panel, I send them to the virtual device instead. It then loads up a queue and sends the commands out FIFO but at a nice digestible rate to the TPs. I even have a tweak setting in the module to adjust the timing in case it needs to be slowed down even more. That has worked quite well for me.
  • Options
    viningvining Posts: 4,368
    ericmedley wrote:
    I too have toyed with creating a weather radar loop on the panels with little to no success.
    The loop works great with the new panels and the ^RFRP command providing the panel except the file name change or the refresh command. When it works it's nice an smooth and continuos with out delays or blanks spots but when it doesn't I get mixed files which because my program allows me to switch from different US satellite regions or image view types when I run the animation I'll get the "Gulf Coast" infra red then "Albany" visable or "Hawaiian" water vapor and so on depending on what filenames actually changed or which images actually refreshed. I know the panel is getting the correct commands but the panel is not doing its part and correctly executing them. Why?????
    Oh, one thing I did notice in your event log is that you seem to be sending quite a few commands to the touch panel at once.
    Yeah but my thinking is the TP should be able to put in queue quite alot of commands in a FIFO buffer and execute when able. I did put 2 second incremental waits in front of each SEND_COMMAND yesterday just to see if it made any difference but it didn't.

    Kinda like you said when it works it works but when the TP wants to be stubborn it doesn't. So how do I give the TP a valium to help keep it in a happy state?
  • Options
    viningvining Posts: 4,368
    Well as near as I can tell the problem is with the ^RMF command cuz the ^RFRP command is working perfect on my radar animation but my satellite animation that requires updating the file names to stay current is just sporadic at best.

    I'm still using waits between send_commands to the TP and I've change the ^RMF command to include all the data (protocol, url, path & filename) instead of just the new filename. Still only some images are changed.

    I wish there was a way to see whats currently stored in the TP resource manager so I can see what's really happening in there. I tried to upload from the TP but when I do the resource manager dynamic list reflects what was original downloaded to it so there has got to be a different working registry in the TP for holding filenames & images after the download.

    I guess I could change the way I'm doing this by updating filenames on the master then downloading and storing the images on the master under a fixed series of filenames that the TP could dynamically download with out ever needing the ^RMF command. It would be similar to my radar animation where NOAA updates the image periodically but the filename remains the same that animates fine. I would have more control and know when files are transferred successfully but that sounds like more work than I want to do right now.

    Has anyone else had issues w/ using ^RMF. Seems like a simple enough command to make work, it's just changing a filename.
Sign In or Register to comment.