Cool stuff for Raspberry Pi, Arduino and all electronics hobby projects
Notifications
Clear all

[Solved / Archived] Pages, but no data...

4 Posts
2 Users
1 Likes
225 Views
(@cjefferies)
Posts: 8
Active Member
Topic starter
 

I have a usb tethered tablet connected to a raspberry pi.  I want to access the UWI from the browser in my tablet.

In the Pi, the interface for the tablet is pid (192.168.22.23).  It is my main window into the options when running my applications.

I can also use the eth0 interface (192.168.0.173) from the dev network so I'd like to access that when I'm developing the app.

I already have tomcat and another lightweight web server and they are accessible, no problem from the browser on the tablet.

What I get is a page with available Devices, but no devices listed.

If I go to http://192.168.22.23:8083/witypi4/ I see the witty Pi 4 page but no data.

Ideally I would like to get to the witty pages from 192.168.0.173 and 192.168.22.23 simultaneously.  How to do that.  I can do it with tomcat and my cgi-bin site.

My uwi.conf.  

host='192.168.22.23';
port=8083;
web_socket_url='ws://'+host+':'+port+'/';
response_timeout=5000;
reconnect_timeout=1000;
debug=0;

wittypi3='/home/pi/wittypi';
wittypi4='/home/pi/wittypi';
zero2go='/home/pi/zero2go';
mega4='/home/pi/mega4';
pgnano='/home/pi/pgnano';

 

$ ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.173 netmask 255.255.255.0 broadcast 192.168.0.255

pid: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.22.23 netmask 255.255.255.0 broadcast 192.168.22.255

 

$ sudo systemctl status uwi.service
● uwi.service - LSB: UUGear Web Interface initialize script
Loaded: loaded (/etc/init.d/uwi; generated)
Active: active (running) since Sat 2024-06-22 05:18:18 UTC; 7min ago
Docs: man:systemd-sysv-generator(8)
Process: 405 ExecStart=/etc/init.d/uwi start (code=exited, status=0/SUCCESS)
Tasks: 10 (limit: 3933)
CPU: 9.486s
CGroup: /system.slice/uwi.service
├─1203 /home/pi/uwi/websocketd --address=192.168.22.23 --port=8083 --staticdir=/home/pi/uwi /home/pi/uwi/messanger.sh
└─1450 /bin/bash /home/pi/uwi/messanger.sh

Jun 22 05:18:18 pyramid-prod44.production systemd[1]: Starting LSB: UUGear Web Interface initialize script...
Jun 22 05:18:18 pyramid-prod44.production uwi[405]: Starting UWI server...
Jun 22 05:18:18 pyramid-prod44.production systemd[1]: Started LSB: UUGear Web Interface initialize script.
 
Posted : 22/06/2024 7:32 am
(@cjefferies)
Posts: 8
Active Member
Topic starter
 

When I finally get to the see the data, where can I see the Vin?

 
Posted : 22/06/2024 7:34 am
(@admin)
Posts: 448
Member Admin
 

If your Pi has multiple IP addresses, even in different subnets, you will need to make some special configurations. There was a discussion before.

You may change your uwi.conf like this:

......
host='0.0.0.0';
port=8000;
web_socket_url='ws://'+window.location.hostname+':'+port+'/';
......
 
Posted : 22/06/2024 10:57 am
cjefferies reacted
(@cjefferies)
Posts: 8
Active Member
Topic starter
 

That worked for the external host.  Sadly not for the directly connected tablet.

What I see in the tablet is the web page, all framed up, but no data items.  I'm guessing it is because we are stuck with an outdated tablet OS and along with that, a really old version of chrome.  Your javascript is probably too advanced for that poor old tablet.  

That's good for now.

Thank you.

 
Posted : 23/06/2024 7:23 am
Join Waitlist We will inform you when the product arrives in stock. Please leave your valid email address below.