Travelmate support thread

Hi, is anybody able to convert this python script https://gist.github.com/fnordomat/6777e6cf003ee06c6548e570060f2cf1

to a travelmate script? He also have some other nice captive portal scripts but they need to be handled in a different way to work with travelmate on a openwrt router i think. I stayed on a camping site "Landal" with m3connect wifi, not accor, but it was handled in a nearly same way. Just the domain was different as in the provided script https://685.rdr.conn4.com/

My programming knowledge is not enough to understand this :frowning: So i had to accept the terms manually all the time during my stay. But Landal has a lot of locations all over europe and they are equipped with m3connect wifi.

BTW: i found some other nice script, tested on openwrt, for VodafoneWIFI in Italy https://github.com/schiavonedimitri/Vodafone-WiFi/blob/master/vodafone.sh

If somebody could teach me to understand what is necessary to convert and write travelmate usable scripts i could provide some more in the future. I'm traveling a lot to different places and would like to support the available login.scripts.

regards
Dirk

1 Like

Hi,

Could you guys help me to create an auto login script? I can manually login at the first time, after this I just need to click on the red button (connect), at that step would help me a lot. This is the translated captive page.

Hi, it is me again.

I finally find out why the curl command was not working--something wrong with the curl package from OpenWRT 21.02 and the curl command is not working for https.

I compiled and installed the curl package (with dependencies) from OpenWRT 19.07 and I can get internet after loading the script when the university wifi is added in WLAN. However, when I added the university wifi to the wireless station in Travelmate, the script never works. In fact, if I do not select any script, connect to the university wifi, and run curl "https://portail-wifi-auth.univ-paris-diderot.fr/login.html" (the university captive login website) and it always returns curl: (6) Couldn't resolve host 'portail-wifi-auth.univ-paris-diderot.fr'. It seems curl in my router does not work after connecting with Travelmate.

Does anyone know what the problem is? Many thanks.

Edit:
After compiling and installing curl from OpenWRT 21.02 (built with Mbed TLS instead of wolfSSL), I finally got it working.

Hi,

Does anyone successfully automatically enable a wireless station after login failure in Travelmate? I notice there is an option Connection End Expiry where we can input a number n. If I understand correctly, this means the wireless station will be enabled again n minute(s) after the wireless station is disabled due to login fails. But for me, somehow it never worked. I set Connection End Expiry to 5, and Travelmate never enable the wireless station again after it disable it.

Is this a bug?

I don't think so as it still works for me, e.g.:

Sat Oct 23 19:42:11 2021 user.info trm-2.0.7[17556]: travelmate instance started ::: action: start, pid: 17556
Sat Oct 23 19:43:37 2021 user.info trm-2.0.7[17556]: uplink 'radio0/#42/94:83:C4:02:EC:58' re-enabled after 1 minutes
Sat Oct 23 19:44:18 2021 user.info trm-2.0.7[17556]: connected to uplink 'radio0/#42/94:83:C4:02:EC:58' with mac '86:47:87:05:99:27' (1/3)
Sat Oct 23 19:45:41 2021 user.info trm-2.0.7[17556]: uplink still in range 'radio0/#42/94:83:C4:02:EC:58' with mac '86:47:87:05:99:27'
Sat Oct 23 19:47:05 2021 user.info trm-2.0.7[17556]: uplink still in range 'radio0/#42/94:83:C4:02:EC:58' with mac '86:47:87:05:99:27'
Sat Oct 23 19:48:27 2021 user.info trm-2.0.7[17556]: uplink still in range 'radio0/#42/94:83:C4:02:EC:58' with mac '86:47:87:05:99:27'
Sat Oct 23 19:49:29 2021 user.info trm-2.0.7[17556]: uplink 'radio1/2go/-' expired after 5 minutes
Sat Oct 23 19:50:56 2021 user.info trm-2.0.7[17556]: uplink 'radio0/#42/94:83:C4:02:EC:58' re-enabled after 1 minutes

As you can see expiry functions are working fine ... prerequisite is a proper ntp time sync (check the ntp flag in travelmate status) - without that it doesn't work.

BTW, there is a cosmetic "expired" log issue as you can see above, the wrong uplink will be printed (but the correct one will be disabled).

Hi,

Thanks for your reply.

You are right. My NTP is not working. I tried to solve the NTP problem but no luck. It seems NTP is blocked on my campus because my computer also has a time synchronization problem.

However, I think there is a dead loop here. Imagine I have only one available wireless station, and Travelmate disables the wireless station due to a login problem, then Travelmate can never enable the wireless station again because NTP is not working without an internet connection. Right?

I have a similar dilemma: NTP is not working and Travelmate often disables the wireless station due to maximum login attempts reached (Connection Limit has been set to 10). Then the wireless station will be never enabled again. I am not sure if it is due to the limitation of my router (TP-Link TL-WR902AC v3), but Travelmate often takes lots of attempts to log in a wireless station (or sometimes fails log in even with 10 attempts). Sometimes I saw Travelmate enable the wireless station then immediately disable it. I include a loop (repeat curl and sleep 2 seconds for 10 times if no internet connection) in the login script and it will take more than 20 seconds if the script is loaded and the login fails. So the script sometimes may not be loaded. Travelmate did log in successfully if I am lucky, meaning the script works.

Is it possible not disabling the wireless station but shifting to another wireless station after login fails (or some similar actions)? Because sometimes the wireless station is probably fine but Travelmate has run out of login attempts. I also notice the script in Scheduled Tasks in LuCI is kind of working without NTP, so is it possible to periodically enable wireless station in Travelmate by script in Scheduled Tasks?

Thanks a lot for your help.

@dibdot
I have set up travelmate on two devices with both atheros wifi chips (fritzbox 4040 and TP Archer C7 V5) Do you think what I reported here: https://bugs.openwrt.org/index.php?do=details&task_id=4115 is a bug of Owrt, ath10k or travelmate?
Sadly right now tavelmate is not useable because "Client" is always disabled upon any change, boot or channel switch.

IMHO that's a driver issue - did you tried this with standard ath10k driver too (non ct-version)?

How do I change the wifi driver? Do I have to compile Openwrt myself then?
Sorry for asking, I should have properly searched first.
I found it and replaced the driver, sadly I get the same output.

Someone on the Owrt irc channel mentioned, that it could be a problem with hostapd. So I wrote the upstream developer of hostapd.
Since there are quite some people with different drivers that have the same issue:

I even tested with most recent firmware from my linux firmware package. Same issue. I think it does not have something to do with the driver, sadly :frowning:

1 Like

I've recently discovered Travelmate, and I have to day it's awesome! It's exactly what I've looked for.
I have a quick feature request. Could the ability to connect to the same SSID with different MAC addresses be added? For instance, if 'CableWiFi' is visible, it connects with the first MAC address. If the connection fails, then it connects to 'CableWiFi' with the second MAC address.
Thanks!

Hi There, I just started with Openwrt and flashed my travel router in order to install Travelmate when I discovered that I can’t find an mediatetek package for it. Can anyone help me en point me out towards a travelmate install package for my TL WR902AC router?

Thx Hans

I'm using a RUTX11 that runs an adapted OpenWrt 21.02.0. I install Travelmate without any errors. But Travelmate will not show in the 'Services' area in the GUI. One change that was done by the manufacturer was to use vuci instead of luci. Any tips how I can get travelmate to show in the GUI?

Chris

Hi guys, I've recently started using Travelmate and it works great, I was wondering if Travelmate supports static and not only dhcp. Is there a way to have some wifi networks to have static settings (for example we want to choose ip address, netmask, gateway and dns for that specific wifi network) and other networks to run on dhcp (automatically assigned)?

From my understanding, the network config file is where you would set up whether trm_wwan is static or dhcp via option proto 'static' or option proto 'dhcp' . I'm assuming at the moment travelmate just makes everything dhcp?

Thanks! Kev

That's correct and I have no plans to change/extend that.

1 Like

Sorry, this is an OpenWrt package only. Please ask the vuci developer for support.

hmm... first time encountering what appears to be a cloud based captive portal hosted by amazon where travelmate was not able to handle captive portal redirection even with the dns binding setting disabled. does anyone have a solution to deal with a could based captive portal? thanks and happy holidays!

i was forced to use the notebook and connect to the hotel captive portal with this url.

https://84jnvbol5d.execute-api.us-east-1.amazonaws.com/hotel/?propertyid=CPYCA&login_url=https%3A%2F%2Fn208.network-auth.com%2Fsplash%2Flogin%3Fmauth%3DMMYdDuLt0wx4gh7WjL7DEXHg-HNDp3_GyKOwvYldwnhJ5jqAX-jD5JKSL5HURFz416deku0ijYEPWrVcmZp67v2Aq6R2cW_B268t93vJC7O0IE1L_TMz31Qql7q-8bgOGrzy3xlwIzstVQk91AeyWTPiu9aGZ40iwYfrMGVVZqnjWZiJv7eMdTBmktI8xjvoZLjerfQ3vdyv8%26continue_url%3Dhttp%253A%252F%252Fwww.msftconnecttest.com%252Fredirect&continue_url=http%3A%2F%2Fwww.msftconnecttest.com%2Fredirect&ap_mac=68%3A3a%3A1e%3A1f%3Ae8%3A8b&ap_name=CPYCA-AP20-RM212&ap_tags=&client_mac=xx%3Axx%3Axx%3Axx%3Axx%3Axx&client_ip=192.168.136.171

Hi there.
Having issues with latest openwrt on a tp link 1043nd.
I installed travel mate on it. Created a wifi AP and added an open wifi network that redirects to a portal for authentication.
I can connect to the AP but then I never get to the captive portal...
Any tips on how I can workaround this issue?
Thanks a bunch.
Cheers

I'm having trouble with the latest version of TM and OpenWRT.
OpenWRT 21.02.1
Travelmate 2.0.9
My router is an old TP-Link WR1043ND v2. Remember, single 2,4GHz radio.
My WiFi uplink is a Portuguese WiFi free provider (MEO/ALTICE) which needs me to login using their captive portal.
After setting up TM using the wizard and setting up a WiFi AP, I can ping the router but I can't access the internet. I can't ping google.com or my uplink's DNS servers or anything.
And I think it's because It is not forcing me into the captive portal.
What can I do in order for TM to forcing me into the captive portal?
TIA
Cheers

could you help me to review the log,the travelmate can not work on my ea7500 v2 router.

1.the uplink interface is wwan.
2.the wireless station is ratio1 and ssid is Tenda_222070_5G
3.below is the syslog.

Tue Dec 28 01:39:47 2021 daemon.notice netifd: Network device 'wlan1' link is up
Tue Dec 28 01:39:47 2021 daemon.notice netifd: Interface 'wwan' is enabled
Tue Dec 28 01:39:47 2021 daemon.notice netifd: Interface 'wwan' has link connectivity
Tue Dec 28 01:39:47 2021 daemon.notice netifd: Interface 'wwan' is setting up now
Tue Dec 28 01:39:48 2021 daemon.notice netifd: wwan (3948): udhcpc: started, v1.33.2
Tue Dec 28 01:39:48 2021 daemon.notice netifd: wwan (3948): udhcpc: sending discover
Tue Dec 28 01:39:51 2021 daemon.notice netifd: wwan (3948): udhcpc: sending discover
Tue Dec 28 01:39:53 2021 user.debug trm-2.0.7[3112]: f_wifi   ::: radio_list: radio1, radio: radio1, timeout: 9
Tue Dec 28 01:39:54 2021 daemon.notice netifd: wwan (3948): udhcpc: sending discover
Tue Dec 28 01:39:59 2021 user.debug trm-2.0.7[3112]: f_check  ::: mode: dev, name: -, status: false, enabled: 1, connection: -, wait: 1, max_wait: 30, min_quality: 35, captive: 1, netcheck: 0
Tue Dec 28 01:39:59 2021 user.debug trm-2.0.7[3112]: f_main-3 ::: radio_list: radio1, sta_list: -
Tue Dec 28 01:39:59 2021 user.info trm-2.0.7[3112]: no enabled station on radio 'radio1'
Tue Dec 28 01:40:25 2021 daemon.notice netifd: Interface 'wwan' is disabled
Tue Dec 28 01:40:25 2021 daemon.notice netifd: Interface 'wwan' has link connectivity loss
Tue Dec 28 01:40:25 2021 daemon.notice netifd: wwan (3948): udhcpc: received SIGTERM
Tue Dec 28 01:40:25 2021 daemon.notice netifd: wwan (3948): udhcpc: entering released state
Tue Dec 28 01:40:25 2021 daemon.notice netifd: wwan (3948): Command failed: Permission denied
Tue Dec 28 01:40:25 2021 daemon.notice hostapd: Remove interface 'wlan1'
Tue Dec 28 01:40:25 2021 daemon.notice hostapd: wlan1: interface state ENABLED->DISABLED
Tue Dec 28 01:40:25 2021 daemon.notice hostapd: wlan1: AP-DISABLED
Tue Dec 28 01:40:25 2021 daemon.notice hostapd: wlan1: CTRL-EVENT-TERMINATING
Tue Dec 28 01:40:25 2021 daemon.notice hostapd: nl80211: deinit ifname=wlan1 disabled_11b_rates=0
Tue Dec 28 01:40:25 2021 daemon.notice netifd: Interface 'wwan' is now down
Tue Dec 28 01:40:28 2021 user.debug trm-2.0.7[3112]: f_getgw  ::: wan4_gw: -, wan6_gw: -, result: -
Tue Dec 28 01:40:28 2021 user.debug trm-2.0.7[3112]: f_setdev ::: radio: radio0, radio_list(cnf/cur): radio1/radio1, disabled: -
Tue Dec 28 01:40:28 2021 user.debug trm-2.0.7[3112]: f_setdev ::: radio: radio1, radio_list(cnf/cur): radio1/radio1, disabled: -
Tue Dec 28 01:40:28 2021 user.debug trm-2.0.7[3112]: f_env    ::: auto_sta: -, wpa_flags: sae: ✘, owe: ✘, eap: βœ”, suiteb192: ✘, sys_ver: Linksys EA7500 v2, OpenWrt
Tue Dec 28 01:40:28 2021 user.debug trm-2.0.7[3112]: f_getcfg ::: status: false, section: , uplink_config: -
Tue Dec 28 01:40:28 2021 user.debug trm-2.0.7[3112]: f_jsnup  ::: section: -, status: running (not connected), sta_iface: -, sta_radio: -, sta_essid: -, sta_bssid: -, ntp: 1, vpn: 0/0, mail: 0/0
Tue Dec 28 01:40:28 2021 user.debug trm-2.0.7[3112]: f_check  ::: mode: initial, name: -, status: false, enabled: 1, connection: -, wait: 1, max_wait: 30, min_quality: 35, captive: 1, netcheck: 0
Tue Dec 28 01:40:28 2021 user.debug trm-2.0.7[3112]: f_main-1 ::: status: false, proactive: 1
Tue Dec 28 01:40:28 2021 user.debug trm-2.0.7[3112]: f_getcfg ::: status: , section: cfg033579, uplink_config: -
Tue Dec 28 01:40:28 2021 user.debug trm-2.0.7[3112]: f_getval ::: option: enabled, result: -, uplink_config: -
Tue Dec 28 01:40:28 2021 user.debug trm-2.0.7[3112]: f_getval ::: option: con_start, result: -, uplink_config: -
Tue Dec 28 01:40:28 2021 user.debug trm-2.0.7[3112]: f_getval ::: option: con_end, result: -, uplink_config: -
Tue Dec 28 01:40:28 2021 user.debug trm-2.0.7[3112]: f_getval ::: option: con_start_expiry, result: -, uplink_config: -
Tue Dec 28 01:40:28 2021 user.debug trm-2.0.7[3112]: f_getval ::: option: con_end_expiry, result: -, uplink_config: -
Tue Dec 28 01:40:28 2021 user.debug trm-2.0.7[3112]: f_setif  ::: enabled: , section: cfg033579, active_sta: -, uplink_config: -
Tue Dec 28 01:40:28 2021 user.debug trm-2.0.7[3112]: f_getcfg ::: status: false, section: , uplink_config: -
Tue Dec 28 01:40:33 2021 user.debug trm-2.0.7[3112]: f_wifi   ::: radio_list: radio1, radio: radio1, timeout: 5
Tue Dec 28 01:40:39 2021 user.debug trm-2.0.7[3112]: f_check  ::: mode: dev, name: -, status: false, enabled: 1, connection: -, wait: 1, max_wait: 30, min_quality: 35, captive: 1, netcheck: 0
Tue Dec 28 01:40:39 2021 user.debug trm-2.0.7[3112]: f_main-3 ::: radio_list: radio1, sta_list: -
Tue Dec 28 01:40:39 2021 user.info trm-2.0.7[3112]: no enabled station on radio 'radio1'
Tue Dec 28 01:41:40 2021 user.debug trm-2.0.7[3112]: f_setdev ::: radio: radio0, radio_list(cnf/cur): radio1/radio1, disabled: -
Tue Dec 28 01:41:40 2021 user.debug trm-2.0.7[3112]: f_setdev ::: radio: radio1, radio_list(cnf/cur): radio1/radio1, disabled: -
Tue Dec 28 01:41:40 2021 user.debug trm-2.0.7[3112]: f_env    ::: auto_sta: -, wpa_flags: sae: ✘, owe: ✘, eap: βœ”, suiteb192: ✘, sys_ver: Linksys EA7500 v2, OpenWrt
Tue Dec 28 01:41:40 2021 user.debug trm-2.0.7[3112]: f_getcfg ::: status: false, section: , uplink_config: -
Tue Dec 28 01:41:40 2021 user.debug trm-2.0.7[3112]: f_jsnup  ::: section: -, status: running (not connected), sta_iface: -, sta_radio: -, sta_essid: -, sta_bssid: -, ntp: 1, vpn: 0/0, mail: 0/0
Tue Dec 28 01:41:40 2021 user.debug trm-2.0.7[3112]: f_check  ::: mode: initial, name: -, status: false, enabled: 1, connection: -, wait: 1, max_wait: 30, min_quality: 35, captive: 1, netcheck: 0
Tue Dec 28 01:41:40 2021 user.debug trm-2.0.7[3112]: f_main-1 ::: status: false, proactive: 1
Tue Dec 28 01:41:40 2021 user.debug trm-2.0.7[3112]: f_getcfg ::: status: , section: cfg033579, uplink_config: -
Tue Dec 28 01:41:40 2021 user.debug trm-2.0.7[3112]: f_getval ::: option: enabled, result: -, uplink_config: -
Tue Dec 28 01:41:40 2021 user.debug trm-2.0.7[3112]: f_getval ::: option: con_start, result: -, uplink_config: -
Tue Dec 28 01:41:40 2021 user.debug trm-2.0.7[3112]: f_getval ::: option: con_end, result: -, uplink_config: -
Tue Dec 28 01:41:40 2021 user.debug trm-2.0.7[3112]: f_getval ::: option: con_start_expiry, result: -, uplink_config: -
Tue Dec 28 01:41:40 2021 user.debug trm-2.0.7[3112]: f_getval ::: option: con_end_expiry, result: -, uplink_config: -
Tue Dec 28 01:41:40 2021 user.debug trm-2.0.7[3112]: f_setif  ::: enabled: , section: cfg033579, active_sta: -, uplink_config: -
Tue Dec 28 01:41:40 2021 user.debug trm-2.0.7[3112]: f_getcfg ::: status: , section: cfg043579, uplink_config: -
Tue Dec 28 01:41:40 2021 user.debug trm-2.0.7[3112]: f_getval ::: option: enabled, result: -, uplink_config: -
Tue Dec 28 01:41:40 2021 user.debug trm-2.0.7[3112]: f_getval ::: option: con_start, result: -, uplink_config: -
Tue Dec 28 01:41:40 2021 user.debug trm-2.0.7[3112]: f_getval ::: option: con_end, result: -, uplink_config: -
Tue Dec 28 01:41:40 2021 user.debug trm-2.0.7[3112]: f_getval ::: option: con_start_expiry, result: -, uplink_config: -
Tue Dec 28 01:41:40 2021 user.debug trm-2.0.7[3112]: f_getval ::: option: con_end_expiry, result: -, uplink_config: -
Tue Dec 28 01:41:40 2021 user.debug trm-2.0.7[3112]: f_setif  ::: enabled: , section: cfg043579, active_sta: -, uplink_config: -
Tue Dec 28 01:41:40 2021 user.debug trm-2.0.7[3112]: f_getcfg ::: status: false, section: , uplink_config: -
Tue Dec 28 01:41:45 2021 user.debug trm-2.0.7[3112]: f_wifi   ::: radio_list: radio1, radio: radio1, timeout: 5
Tue Dec 28 01:41:51 2021 user.debug trm-2.0.7[3112]: f_check  ::: mode: dev, name: -, status: false, enabled: 1, connection: -, wait: 1, max_wait: 30, min_quality: 35, captive: 1, netcheck: 0
Tue Dec 28 01:41:51 2021 user.debug trm-2.0.7[3112]: f_main-3 ::: radio_list: radio1, sta_list: -
Tue Dec 28 01:41:51 2021 user.info trm-2.0.7[3112]: no enabled station on radio 'radio1'
Tue Dec 28 01:42:51 2021 user.debug trm-2.0.7[3112]: f_setdev ::: radio: radio0, radio_list(cnf/cur): radio1/radio1, disabled: -
Tue Dec 28 01:42:51 2021 user.debug trm-2.0.7[3112]: f_setdev ::: radio: radio1, radio_list(cnf/cur): radio1/radio1, disabled: -
Tue Dec 28 01:42:51 2021 user.debug trm-2.0.7[3112]: f_env    ::: auto_sta: -, wpa_flags: sae: ✘, owe: ✘, eap: βœ”, suiteb192: ✘, sys_ver: Linksys EA7500 v2, OpenWrt
Tue Dec 28 01:42:51 2021 user.debug trm-2.0.7[3112]: f_getcfg ::: status: false, section: , uplink_config: -
Tue Dec 28 01:42:51 2021 user.debug trm-2.0.7[3112]: f_jsnup  ::: section: -, status: running (not connected), sta_iface: -, sta_radio: -, sta_essid: -, sta_bssid: -, ntp: 1, vpn: 0/0, mail: 0/0
Tue Dec 28 01:42:51 2021 user.debug trm-2.0.7[3112]: f_check  ::: mode: initial, name: -, status: false, enabled: 1, connection: -, wait: 1, max_wait: 30, min_quality: 35, captive: 1, netcheck: 0
Tue Dec 28 01:42:51 2021 user.debug trm-2.0.7[3112]: f_main-1 ::: status: false, proactive: 1
Tue Dec 28 01:42:51 2021 user.debug trm-2.0.7[3112]: f_getcfg ::: status: , section: cfg033579, uplink_config: -
Tue Dec 28 01:42:51 2021 user.debug trm-2.0.7[3112]: f_getval ::: option: enabled, result: -, uplink_config: -
Tue Dec 28 01:42:52 2021 user.debug trm-2.0.7[3112]: f_getval ::: option: con_start, result: -, uplink_config: -
Tue Dec 28 01:42:52 2021 user.debug trm-2.0.7[3112]: f_getval ::: option: con_end, result: -, uplink_config: -
Tue Dec 28 01:42:52 2021 user.debug trm-2.0.7[3112]: f_getval ::: option: con_start_expiry, result: -, uplink_config: -
Tue Dec 28 01:42:52 2021 user.debug trm-2.0.7[3112]: f_getval ::: option: con_end_expiry, result: -, uplink_config: -
Tue Dec 28 01:42:52 2021 user.debug trm-2.0.7[3112]: f_setif  ::: enabled: , section: cfg033579, active_sta: -, uplink_config: -
Tue Dec 28 01:42:52 2021 user.debug trm-2.0.7[3112]: f_getcfg ::: status: , section: cfg043579, uplink_config: -
Tue Dec 28 01:42:52 2021 user.debug trm-2.0.7[3112]: f_getval ::: option: enabled, result: -, uplink_config: -
Tue Dec 28 01:42:52 2021 user.debug trm-2.0.7[3112]: f_getval ::: option: con_start, result: -, uplink_config: -
Tue Dec 28 01:42:52 2021 user.debug trm-2.0.7[3112]: f_getval ::: option: con_end, result: -, uplink_config: -
Tue Dec 28 01:42:52 2021 user.debug trm-2.0.7[3112]: f_getval ::: option: con_start_expiry, result: -, uplink_config: -
Tue Dec 28 01:42:52 2021 user.debug trm-2.0.7[3112]: f_getval ::: option: con_end_expiry, result: -, uplink_config: -
Tue Dec 28 01:42:52 2021 user.debug trm-2.0.7[3112]: f_setif  ::: enabled: , section: cfg043579, active_sta: -, uplink_config: -
Tue Dec 28 01:42:52 2021 user.debug trm-2.0.7[3112]: f_getcfg ::: status: false, section: , uplink_config: -