I installed the firmware V1.2.11 on a T-beam 1. Manage to get the device to boot setting up a local AP. I use a windows10 PC to logon on to the wifi network, entering password.
However when trying to access the webserver 192.168.42.1 using the Firefox browser nothing happens and after a while I get the error below, I can ping the device on 192.168.42.1.
Thanks for the link to the wiki page. After the re-instalation it brought me one step forward, I connect to the webserver but nothing happens when pushing the button “Connect to Meshtastic device”.
Try visiting 192.168.42.1/static
From there you can see the available files installed on the web server. It looks like you need to download the latest release of meshtastic-web and upload the files onto the node. The wiki page has a good amount of info on how to do this.
Gave up the local AP approach, connected the device via USB, used the command line tool to setup Wifi credential.
Managed to upload latest index.html, app.js and app.css files to /static and now I can access the web server. The device status works, but not the device settings, here nothing happens.
Ah, I suspect you’re probably using the 1.2.x version on the device which saw quite a few changes from the 1.1.x branch. I don’t think the web side has had an update since then. I believe @sachaw and @crossan007 are working on this though, amongst other things.
No direct instructions ATM, we still need to reconfigure the build step to produce only a few artefacts, ATM it produces several files. Feel free to gove it a shot yourself, it’s built with next.js so there’s plenty of support out there. @mc-hamster what do you think about supporting a virtual file system from an archive? I.e. upload an archive and the contents are mapped 1:1 to the web root?
20:23:18 > Build error occurred
20:23:18 /vercel/workpath0/node_modules/@meshtastic/meshtasticjs/dist/index.js:1
20:23:18 import { Client } from "./client";
20:23:18 ^^^^^^
20:23:18 SyntaxError: Cannot use import statement outside a module
20:23:18 at wrapSafe (internal/modules/cjs/loader.js:979:16)
20:23:18 at Module._compile (internal/modules/cjs/loader.js:1027:27)
20:23:18 at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
20:23:18 at Module.load (internal/modules/cjs/loader.js:928:32)
20:23:18 at Function.Module._load (internal/modules/cjs/loader.js:769:14)
20:23:18 at Module.require (internal/modules/cjs/loader.js:952:19)
20:23:18 at require (internal/modules/cjs/helpers.js:88:18)
20:23:18 at Object.luW6 (/vercel/workpath0/.next/server/pages/_app.js:339:18)
20:23:18 at __webpack_require__ (/vercel/workpath0/.next/server/pages/_app.js:23:31)
20:23:18 at Module.cha2 (/vercel/workpath0/.next/server/pages/_app.js:146:21)
20:23:18 at __webpack_require__ (/vercel/workpath0/.next/server/pages/_app.js:23:31)
20:23:18 at Object.1 (/vercel/workpath0/.next/server/pages/_app.js:99:18)
20:23:18 at __webpack_require__ (/vercel/workpath0/.next/server/pages/_app.js:23:31)
20:23:18 at /vercel/workpath0/.next/server/pages/_app.js:91:18
20:23:18 at Object.<anonymous> (/vercel/workpath0/.next/server/pages/_app.js:94:10)
20:23:18 at Module._compile (internal/modules/cjs/loader.js:1063:30)
I was able to edit meshtastic-client-main/node_modules/@meshtastic/meshtasticjs/package.json and add:
“type”: “module”,
and mv /meshtastic-client-main/node_modules/@meshtastic/meshtasticjs/dist/index.js /meshtastic-client-main/node_modules/@meshtastic/meshtasticjs/dist/index.cjs
then my npm build run worked fine locally, I assume the same would be true up on vercel.
@sachaw , yeah, thats a mess of files to have to upload!
On my local machine, I needed the following to compile\make the ~56 static files:
install node\npm Download | Node.js
npm install -g yarn
npm install -g npm@7.8.0
npm install -g typescript
npm install -g pkg
yarn add --dev typescript @types/react
get https://github.com/sachaw/meshtastic-client
modify line in root of meshtastic-client-main/package.json
“build”: “next build”, to:
“build”: “next build && next export”,
npm run build
edit meshtastic-client-main/node_modules/@meshtastic/meshtasticjs/package.json and add:
“type”: “module”,
mv /meshtastic-client-main/node_modules/@meshtastic/meshtasticjs/dist/index.js /meshtastic-client-main/node_modules/@meshtastic/meshtasticjs/dist/index.cjs
npm run build
output will be in /meshtastic-client-main/out/
So if I understand correctly, if I want to use a functional web interface I should use the 1.1.x branch on the device?
I see the latest 0.1.7 of the meshtastic-web (Feb 19), although the web files are 5 months old so that would be something like Meshtastic-device 1.1.5 beta from October?