Travelmate support thread

This addon is extremely helpful for me but my scripting knowledge is very very limited
Could anyone help me to create one script for a Portal that i use? I will try give all information's that are necessary

Thank you in advance

I was able to change the MAC address of the connection by adding the following to /etc/config/network

config device 'wlan0_dev'
option name 'wlan0'
option macaddr 'xx:xx:xx:xx:xx:xx'

This allowed me to spoof the MAC address, so the Travelmate instance now connects properly to the hotspot of the camping.

The connection still seems to be unstable though, and it looks like the problems occur when a second device (Oneplus phone) connects to the hotspot. The router keeps the connection to the hotspot of the camping, but no packages travel trough the interface.

The log completely fills with entries like:

Mon Aug  3 14:11:57 2020 daemon.notice hostapd: wlan0-1: STA-OPMODE-SMPS-MODE-CHANGED xx:xx:xx:xx:xx:xx off
Mon Aug  3 14:11:57 2020 daemon.notice hostapd: wlan0-1: STA-OPMODE-SMPS-MODE-CHANGED xx:xx:xx:xx:xx:xx static
Mon Aug  3 14:11:57 2020 daemon.notice hostapd: wlan0-1: STA-OPMODE-SMPS-MODE-CHANGED xx:xx:xx:xx:xx:xx off
Mon Aug  3 14:11:57 2020 daemon.notice hostapd: wlan0-1: STA-OPMODE-SMPS-MODE-CHANGED xx:xx:xx:xx:xx:xx static

As soon as the second WiFi client (phone) disconnects from the router, the packages start to flow again.

Not a Travelmate issue if i look around, so I will start my search into a solution for it.

I manage to retrieve the data from HTTPHeaderLive addon, could anyone use this data and help me to create the script?

HTTPHeaderLive
https://ote.portal.fon.com/ZTEOTE03/ote/4130e1294e1a83710a5e3e716a1c6e4c328b5cc0?res=login&nasid=B0-AC-D2-23-F8-DB&uamip=192.168.182.1&uamport=3990&mac=AC-84-C6-C3-22-2C&challenge=54f6aa2f363d7a9cbd5d26649d1323dd&userurl=http%3A%2F%2Fwww.msftconnecttest.com%2Fredirect&tab=2
Origin: https://ote.portal.fon.com
Upgrade-Insecure-Requests: 1
DNT: 1
Content-Type: application/x-www-form-urlencoded
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
PASSWORD=My_Secret_Password&USERNAME=My_Secret_User_Name&chooseUser=partnersusers
POST: HTTP/1.1 302 Found
Server: nginx
Date: Sun, 02 Aug 2020 20:56:27 GMT
Content-Type: text/html; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Location: http://192.168.182.1:3990/logon?username=FON%2FMy_Secret_User_Name%40otenet.gr%40fon&password=ae14fb5c637c5a89cac8656c82ac8e5a
Cache-Control: max-age=-34202
---------------------
http://192.168.182.1:3990/logon?username=FON%2FMy_Secret_User_Name%40otenet.gr%40fon&password=ae14fb5c637c5a89cac8656c82ac8e5a
Origin: https://ote.portal.fon.com
Upgrade-Insecure-Requests: 1
DNT: 1
Content-Type: application/x-www-form-urlencoded
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9

GET: HTTP/1.1 302 Moved Temporarily
Server: hotspotd
Connection: close
Location: https://ote.portal.fon.com/ZTEOTE03/ote/4130e1294e1a83710a5e3e716a1c6e4c328b5cc0?res=success&uamip=192.168.182.1&uamport=3990&uid=FON/My_Secret_User_Name@fon&called=B0-AC-D2-23-F8-DB&mac=AC-84-C6-C3-22-2C&ip=192.168.182.4&nasid=B0-AC-D2-23-F8-DB&userurl=http%3A%2F%2Frouter9.teamviewer.com%2Fcname.aspx
---------------------
https://ote.portal.fon.com/ZTEOTE03/ote/4130e1294e1a83710a5e3e716a1c6e4c328b5cc0?res=success&uamip=192.168.182.1&uamport=3990&uid=FON/My_Secret_User_Name@fon&called=B0-AC-D2-23-F8-DB&mac=AC-84-C6-C3-22-2C&ip=192.168.182.4&nasid=B0-AC-D2-23-F8-DB&userurl=http%3A%2F%2Frouter9.teamviewer.com%2Fcname.aspx
Origin: https://ote.portal.fon.com
Upgrade-Insecure-Requests: 1
DNT: 1
Content-Type: application/x-www-form-urlencoded
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9

GET: HTTP/1.1 302 Found
Server: nginx
Date: Sun, 02 Aug 2020 20:56:29 GMT
Content-Type: text/html; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Location: https://ote.portal.fon.com/ZTEOTE03/ote/4130e1294e1a83710a5e3e716a1c6e4c328b5cc0?res=postaccessportal&nasid=B0-AC-D2-23-F8-DB&uamip=192.168.182.1&uamport=3990&mac=AC-84-C6-C3-22-2C&ip=192.168.182.4&userurl=http%3A%2F%2Frouter9.teamviewer.com%2Fcname.aspx
Cache-Control: max-age=-34201
---------------------
https://ote.portal.fon.com/ZTEOTE03/ote/4130e1294e1a83710a5e3e716a1c6e4c328b5cc0?res=postaccessportal&nasid=B0-AC-D2-23-F8-DB&uamip=192.168.182.1&uamport=3990&mac=AC-84-C6-C3-22-2C&ip=192.168.182.4&userurl=http%3A%2F%2Frouter9.teamviewer.com%2Fcname.aspx
Origin: https://ote.portal.fon.com
Upgrade-Insecure-Requests: 1
DNT: 1
Content-Type: application/x-www-form-urlencoded
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9

GET: HTTP/1.1 200 OK
Server: nginx
Date: Sun, 02 Aug 2020 20:56:29 GMT
Content-Type: text/html; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Cache-Control: max-age=-34201
---------------------
https://ote.portal.fon.com/static/css/main.css
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36
DNT: 1
Accept: text/css,*/*;q=0.1

GET: HTTP/1.1 200 OK
Server: nginx
Date: Sun, 02 Aug 2020 20:56:29 GMT
Last-Modified: Wed, 29 Aug 2018 10:26:27 GMT
Cache-Control: max-age=-34201
Content-Type: text/css
Content-Length: 17266
Accept-Ranges: bytes
---------------------
https://ote.portal.fon.com/static/js/jquery-1.6.min.js
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36
DNT: 1
Accept: */*

net::ERR_ABORTED
Server: nginx
Date: Sun, 02 Aug 2020 20:56:30 GMT
Content-Type: text/html; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Refresh: 
---------------------
https://ote.portal.fon.com/static/js/jquery_counter.js
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36
DNT: 1
Accept: */*

GET: HTTP/1.1 200 OK
Server: nginx
Date: Sun, 02 Aug 2020 20:56:30 GMT
Content-Type: application/x-javascript
Content-Length: 887
Last-Modified: Tue, 21 Aug 2018 10:44:27 GMT
Connection: keep-alive
Cache-Control: max-age=-34201
Accept-Ranges: bytes
---------------------
https://www.googletagservices.com/tag/js/gpt.js


---------------------
https://www.google.com/cse/cse.js?cx=015826650756961382456:x06vip__yci
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36
DNT: 1
Accept: */*

GET: HTTP/1.1 302
status: 302
location: https://cse.google.com/cse/cse.js?cx=015826650756961382456:x06vip__yci
cache-control: private
content-type: text/html; charset=UTF-8
x-content-type-options: nosniff
date: Sun, 02 Aug 2020 20:56:30 GMT
server: sffe
content-length: 267
x-xss-protection: 0
alt-svc: h3-29=":443"; ma=2592000,h3-27=":443"; ma=2592000,h3-T050=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
---------------------
https://ote.portal.fon.com/static/images/sprite-icons.png
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36
DNT: 1
Accept: image/webp,image/apng,image/*,*/*;q=0.8

GET: HTTP/1.1 200 OK
Server: nginx
Date: Sun, 02 Aug 2020 20:56:30 GMT
Last-Modified: Tue, 21 Aug 2018 10:44:27 GMT
Cache-Control: max-age=-34201
Content-Type: image/png
Content-Length: 56233
Accept-Ranges: bytes
---------------------
https://ote.portal.fon.com/static/images/bg-select-lang.png
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36
DNT: 1
Accept: image/webp,image/apng,image/*,*/*;q=0.8

GET: HTTP/1.1 200 OK
Server: nginx
Date: Sun, 02 Aug 2020 20:56:30 GMT
Last-Modified: Tue, 21 Aug 2018 10:44:27 GMT
Cache-Control: max-age=-34201
Content-Type: image/png
Content-Length: 15702
Accept-Ranges: bytes
---------------------
https://ote.portal.fon.com/static/images/arrowInfo.png
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36
DNT: 1
Accept: image/webp,image/apng,image/*,*/*;q=0.8

GET: HTTP/1.1 200 OK
Server: nginx
Date: Sun, 02 Aug 2020 20:56:30 GMT
Content-Type: image/png
Content-Length: 1774
Last-Modified: Tue, 21 Aug 2018 10:44:27 GMT
Connection: keep-alive
Cache-Control: max-age=-34201
Accept-Ranges: bytes
---------------------
https://ote.portal.fon.com/static/images/bg-aboutFon.png
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36
DNT: 1
Accept: image/webp,image/apng,image/*,*/*;q=0.8

GET: HTTP/1.1 200 OK
Server: nginx
Date: Sun, 02 Aug 2020 20:56:30 GMT
Last-Modified: Tue, 21 Aug 2018 10:44:27 GMT
Cache-Control: max-age=-34201
Content-Type: image/png
Content-Length: 9201
Accept-Ranges: bytes
---------------------
https://ote.portal.fon.com/static/images/modal-gloss.png
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36
DNT: 1
Accept: image/webp,image/apng,image/*,*/*;q=0.8

GET: HTTP/1.1 200 OK
Server: nginx
Date: Sun, 02 Aug 2020 20:56:30 GMT
Last-Modified: Tue, 21 Aug 2018 10:44:27 GMT
Cache-Control: max-age=-34201
Content-Type: image/png
Content-Length: 2912
Accept-Ranges: bytes
---------------------
https://stats.fon.com/piwik.js

net::ERR_BLOCKED_BY_CLIENT
---------------------
https://cse.google.com/cse/cse.js?cx=015826650756961382456:x06vip__yci
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36
DNT: 1
Accept: */*

GET: HTTP/1.1 200
status: 200
content-type: text/javascript; charset=UTF-8
content-disposition: attachment; filename="f.txt"
content-encoding: br
date: Sun, 02 Aug 2020 20:56:30 GMT
server: gws
content-length: 3477
x-xss-protection: 0
x-frame-options: SAMEORIGIN
expires: Sun, 02 Aug 2020 20:56:30 GMT
cache-control: private
alt-svc: h3-29=":443"; ma=2592000,h3-27=":443"; ma=2592000,h3-T050=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
---------------------
https://www.google.com/cse/static/element/26b8d00a7c7a0812/cse_element__en.js?usqp=CAI%3D
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36
DNT: 1
Accept: */*

GET: HTTP/1.1 200
status: 200
accept-ranges: bytes
vary: Accept-Encoding
content-encoding: gzip
content-type: text/javascript
content-length: 88400
date: Sat, 01 Aug 2020 14:50:05 GMT
expires: Sun, 01 Aug 2021 14:50:05 GMT
last-modified: Mon, 06 Jul 2020 13:27:13 GMT
x-content-type-options: nosniff
server: sffe
x-xss-protection: 0
cache-control: public, max-age=31536000
age: 108385
alt-svc: h3-29=":443"; ma=2592000,h3-27=":443"; ma=2592000,h3-T050=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
---------------------
https://www.google.com/cse/static/element/26b8d00a7c7a0812/default+en.css
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36
DNT: 1
Accept: text/css,*/*;q=0.1

GET: HTTP/1.1 200
status: 200
accept-ranges: bytes
vary: Accept-Encoding
content-encoding: gzip
content-type: text/css
content-length: 8947
date: Sat, 01 Aug 2020 14:50:11 GMT
expires: Sun, 01 Aug 2021 14:50:11 GMT
last-modified: Mon, 06 Jul 2020 13:27:13 GMT
x-content-type-options: nosniff
server: sffe
x-xss-protection: 0
cache-control: public, max-age=31536000
age: 108379
alt-svc: h3-29=":443"; ma=2592000,h3-27=":443"; ma=2592000,h3-T050=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
---------------------
https://www.google.com/cse/static/style/look/v4/default.css
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36
DNT: 1
Accept: text/css,*/*;q=0.1

GET: HTTP/1.1 200
status: 200
accept-ranges: bytes
vary: Accept-Encoding
content-encoding: gzip
content-type: text/css
content-length: 1345
date: Sun, 02 Aug 2020 20:50:57 GMT
expires: Sun, 02 Aug 2020 21:40:57 GMT
last-modified: Wed, 17 Jun 2020 00:00:00 GMT
x-content-type-options: nosniff
server: sffe
x-xss-protection: 0
cache-control: public, max-age=3000
age: 333
alt-svc: h3-29=":443"; ma=2592000,h3-27=":443"; ma=2592000,h3-T050=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
---------------------
https://cse.google.com/adsense/search/async-ads.js

net::ERR_BLOCKED_BY_CLIENT
---------------------
https://www.google.com/cse/static/css/v2/clear.png
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36
DNT: 1
Accept: image/webp,image/apng,image/*,*/*;q=0.8

GET: HTTP/1.1 200
status: 200
accept-ranges: bytes
content-type: image/png
content-length: 1018
date: Thu, 09 Jul 2020 01:21:09 GMT
expires: Fri, 09 Jul 2021 01:21:09 GMT
last-modified: Mon, 25 May 2020 08:30:00 GMT
x-content-type-options: nosniff
server: sffe
x-xss-protection: 0
cache-control: public, max-age=31536000
age: 2144121
alt-svc: h3-29=":443"; ma=2592000,h3-27=":443"; ma=2592000,h3-T050=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
---------------------
https://www.google.com/cse/static/images/1x/en/branding.png
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36
DNT: 1
Accept: image/webp,image/apng,image/*,*/*;q=0.8

GET: HTTP/1.1 200
status: 200
accept-ranges: bytes
content-type: image/png
content-length: 1372
date: Fri, 24 Jul 2020 12:56:24 GMT
expires: Sat, 24 Jul 2021 12:56:24 GMT
last-modified: Mon, 25 May 2020 08:30:00 GMT
x-content-type-options: nosniff
server: sffe
x-xss-protection: 0
cache-control: public, max-age=31536000
age: 806406
alt-svc: h3-29=":443"; ma=2592000,h3-27=":443"; ma=2592000,h3-T050=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
---------------------
https://www.googleapis.com/generate_204

net::ERR_BLOCKED_BY_CLIENT
---------------------
https://clients1.google.com/generate_204

net::ERR_BLOCKED_BY_CLIENT
---------------------
chrome-extension://jljeikaiehipjcfbpedmgikbbhmknpkk/HTTPHeaderSub.html

GET: HTTP/1.1 200 OK
---------------------
chrome-extension://jljeikaiehipjcfbpedmgikbbhmknpkk/css/style_sub.css

GET: HTTP/1.1 200 OK
---------------------
chrome-extension://jljeikaiehipjcfbpedmgikbbhmknpkk/internationalization.js

GET: HTTP/1.1 200 OK
---------------------
chrome-extension://jljeikaiehipjcfbpedmgikbbhmknpkk/HTTPHeaderSub.js

GET: HTTP/1.1 200 OK
---------------------

Please help me Travelmate does not connect

Which "Signal Quality Threshold" value is reasonable? Is a good value here depending on the hardware? Does this also affect the scanning list?

I can't get a Client connection to a 5GHz ac network while already having a Master network on ac. I can enable the Client network only if the Master network is disabled, not both at the same time. Channel on the Master network is automatic.

If found the solution by changing the width on the Master network to 80MHz just like the upstream Client connection. Why isn't there some automatic setting for width? I can't change the width of my Master network manually every time I connect to a new upstream network. Hardware is Netgear R7800.

I already had a thread about this issue but I guess it is travelmates job to adapt the width accordingly, isn't it?

I enabled [x] Net Error Check and [x] Add Open Uplinks so I see new open networks automatically being added. But the current network has no internet connectivity but stays connected, while the net error check should actually drop it, no?

I'm using the default (35 %) since years ...

No.

Set your 5G to a non-DFS channel, don't use the auto setting (this prevent often valuable scanning results).

Nope, travelmate handles only the client connections.

Full debug logs, please.

Is this really the right way to do? I had issues on other devices (Linksys WRT*) when Master wireless channel was fixed and the Client wireless was connecting to a different channel. The solution there was to use Auto channel on Master wifi (which I usually avoid) and being flexible to connect as Client wifi to any other network.

Can Travelmate be setup as a proper home repeater just like relayd? I mean no NAT, no DHCP server, firewall set to LAN and static IP address within the same subnet.

Nope, that's not supported.

I'm making a feature request then. Any chance you could implement that? Default OpenWRT behavior (disable AP if STA isn't connected) is ridicoulus.

Nope, travelmate focus solely on travel router use.

I guess it would have to be a new app - Repeatmate :wink: Anyway, I'm just throwing it out there.

After a quite long time I come up with a new travelmate pre-release, see here for details.

1 Like

I'm trying to setup in vehicle routers as I'm installing printers in my service vans.

Previously they just had laptops and would either tether to their phone or the in vehicle hotspot if it was equipped. This had plenty of issues (people would often use the slow/unreliable cellular when they were at our shop with fiber, people trying to choose networks on their devices and disabling auto-connect, etc), and making a networked printer work reliably in this kind of network where there is basically no configuration without needing to configure anything is proving impossible. So I ordered a GL-AR150 travel router, installed OpenWRT, Travelmate, and all went well. Until they started using it, and when they drive through (or maybe start the vehicle) in areas with no signal, apparently Travelmate determines the connection is bad, and stops retrying, and the max retries is only 10 and for 300 seconds, but the cellular issue could exist longer then that. Is there a way to make that unlimited or otherwise solve my issue?

To be honest, I didn't understand your problem ... anyway, to raise the maxretry range, change line 124 in /usr/bin/travelmate.sh:

Hi @dibdot,
I am currently trying to use the travelmate plugin to automatically login to a public wifi.
Therefore i caputured the login process, which is really static. It requires no cookies or tokens to be generated, just a single http POST request with the username and password.

I've created a small script out of it, that i placed in the /etc/travelmate folder

root@OpenWrt:/etc/travelmate# cat hotspot.login 
#!/bin/sh

curl --location --request POST '172.23.208.13:8000/' \
--header 'Origin: http://172.23.208.13:8000' \
--header ': ' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'auth_user=xxx' \
--data-urlencode 'auth_pass=xxx' \
--data-urlencode 'redirurl=google.com' \
--data-urlencode 'auth_voucher=' \
--data-urlencode 'accept=Weiter'

It works when i execute it manually (i added the curl package to openwrt) but it doesn't get triggered automatically when OpenWRT / Travelmate connects to the access point.
How can i change this?
Best wishes and thanks for this package :slight_smile: