Just got the web data working. Seems like the old protocol is blocked so I can't read the values. But strange enough I can get the data in my web browser...
Used a different one, and finally it works. Just some more coding and I'm done with the upgrade.
Update: Ended in a update of the code. Seems there is a lot to be rewritten due to hasty/dirty coding. I also have a issue getting access to the web to retrieve data for the updates. I will release a new version with the full installer in the next 10-30 days or so...
Hi, due to a domain change the main exefile can now be downloaded here:
http://www.weatherby.dk/downloads.php?do=cat&id=2
I will soon include the whole installer file containing all files needed to run the app.
Hi, seems like the installer is not working as it should. Unpack the zip file, copy the file to folder C:\Windows\System32\
Type "CMD" in search box. Use dos window and Browse to C:\Windows\System32\
Commands:
cd c:\
cd windows
cd system32
(Since you are running Windows server 2012 I guess...
Hi, got the logger function up and running. Will play some more with this and test if I can dump the list to excel.
Seems like VB Express is quite more powerful than VB6. I can get strings from the board 17-20 times a second!
In VB6 it was one string a second or so. And yes, dumping to excel...
Here is the updated file. Insert your IP Adress, Username and Password and try to pull desired data. Tested and worked on my computer. (Win7)
Download VB Express script file below in this post.
Enjoy!
Code:
Imports System.Net
Imports System.IO
Public Class Form1
Private Sub...
Here is the new code. Will post the script files later.
Stay tuned!
Imports System.Net
Imports System.IO
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim inStream As StreamReader
Dim...
Next code example: If your WC8 card has password protection you can add this code:
webRequest = webRequest.Create("http://192.168.0.10/getall.cgi")
webRequest.Credentials = New NetworkCredential("UserName", "Password")
Just remember to rem the old line with webRequest.
If you want to, you...
Tried just getall.cgi.
Just add "RichTextBox1" on the form, and rem the textbox2 line.
Added code:
RichTextBox1.Text = inStream.ReadToEnd()
Gets this result:
Hi, I have developed a demo for communicating with WC8 using VB.Net. Program is compiled in VB Express 2008.
This demo asks for Temp sensor #1 value.
Code:
Imports System.Net
Imports System.IO
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As...
Tried tonight to use VB.Net to get some data strings. Here is an example pulling data from a URL:
Imports System.Net
Imports System.IO
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim inStream As...
Another way of sniffing the commands is using FireFox using Firebug.
Here is my list:
geta1.cgi 'Analog
geta3.cgi
geti1.cgi 'Digital
geti8.cgi
getvar1.cgi '32Bit Output
getvar8.cgi
geth1.cgi ' Humidity
gett1.cgi 'Temp
gett8.cgi
getts1.cgi 'Temp status
getts8.cgi
geto1.cgi ' TTL Output...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.