I'm try to get data from a truck scale into Filemaker. It needs to be usable by an Ipad and I'm working on a Windows machine so no Apple script.The weight can be read via Telnet and a web page. Any help would be appreciated.
possibly insert from URL or plugin (https://www.troi.com/software/urlplugin.html)
you will get other answers!
You can use a web viewer and then add another field to GetLayoutObjectAttribute ("URL"; "Content")
URL is the object name of the web viewer on the layout I use.
Content is the data returned for the current content (such as HTML code) in the web viewer.
Then create a calc field that scrapes the content for the value you are looking for. I use a custom function ParseBetween to do this. It should not take to long once you take a look at the raw html you get back from the web viewer.
Does this work on the Ipad?
I have not tested it, but I can't see any reason it would not. It is all active FileMaker no plugins. I'll test it tomorrow and let you know.
Statewide Network & Information Technology Project Manager
Center for Schools & Communities
Work (717) 763-1661 x124 Cell (717) 439-2099
I can not seem to get any content, the only thing that has worked is object type?
Did you put the web viewer on the layout? It has to be there and pointing to the correct web page for there to be content to get.
Here is the content I don't think this will work.
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>IND780 Scale Data Main</title>
<frame frameborder="0" src="excalweb.dll?webpage=scaledata1.htm" name="MainPage">
<frame frameborder="0" src="excalweb.dll?webpage=scaledata2.htm" scrolling="no" name="Data" NORESIZE>
Telnet is another way to command and connect. Not sure of API or FTP.
If you are working with the IND780 units, you can can get the weight for all 5 scales using the script below.
It only works when evaluated on the units webserver, but you can build a response into the page stored on the IND780 if accessing it off the unit.
currentWeightString = "<!--#exec sd=wt0102 wt0202 wt0302 wt0402 wt0502-->";
Retrieving data ...