I put some scripts in the cgi-bin folder of vera. I use this to display graphs (using google charts) of sensor readings over time. That all works great when I am at home and access the web server in the local network. My question is, can I access other pages then the dashboard via mios from the internet?
I recently got an enhancement for Automator.app from MCV that allows calling cgi-bin through cp.mios.com, so that should work for you too.
ok, thanks, I will try this.
not working for me. Which parts do I have to replace in the link? I assume serial is the serial number of my vera?
you need to replace “#”, “user”, “password”, and “serial”
is a 1 or 2 (e.g. its either http://fwd1.mios.com/ or http://fwd2.mios.com)
user is your mios.com username
password is your mios.com password
serial is the serial number of your mios unit
wow great, pass your user and password in the url.
REALLY? :
??? :o
still not working. I have to wait till i am back home to check that i have the file name right.
password in url is not great but with https and using a pc under your control it is acceptable.
[quote=“utz, post:8, topic:168677”]still not working. I have to wait till i am back home to check that i have the file name right.
password in url is not great but with https and using a pc under your control it is acceptable.[/quote]
I just checked and it did stop working. I sent off an email to MCV. It used to work.
Regarding the user and password in the URL, well, it is over ssl so its not so bad really.
Any news? Is MCV planning to activate this again?
Sorry for the late reply, both me and Vali tested this on different Veras and I confirm that it’s still working. If one fwd doesn’t work, try the other one. Also, put a simple script that just prints Hello World! in /www/cgi-bin/cmh and test with that.
#!/usr/bin/haserl
<?
echo "Hello World!"
?>
Make sure that the script is executable (chmod 755).
[quote=“mcvflorin, post:11, topic:168677”]Sorry for the late reply, both me and Vali tested this on different Veras and I confirm that it’s still working. If one fwd doesn’t work, try the other one. Also, put a simple script that just prints Hello World! in /www/cgi-bin/cmh and test with that.
#!/usr/bin/haserl
<?
echo "Hello World!"
?>
Make sure that the script is executable (chmod 755).[/quote]
Ah, when I tested it I was using:
https://fwd2.mios.com/........./cgi-bin/cmh/log.sh?Device=luaupnp
and came to the conclusion it stopped working. Seems it just doesn’t work for that particular script, but another script, such as get_upnp_files.sh does still work.
One reason why having passwords in the URL is bad practice is because the URL for requests are typically logged to an access log, and are often passed to third parties for monitoring/statistics as well.