richardlevy / solis-cloud-scraper

Node script to scrape daily solar stats from Solis Cloud website and expose data locally via an easily accessible endpoint.
5 stars 3 forks source link

Not working on ARM (Raspberry PI) #1

Open adendogo opened 1 year ago

adendogo commented 1 year ago

The specific version of Chromium, loaded by Puppeteer, ends up with some strange character output to console. One can solve this issue with the default installation of Chromium provided by the package manager. sudo apt install chromium The binary is found here: /usr/bin/chromium

Next you need to add this path as parameter while initialize puppeteer.launch

const browser = await puppeteer.launch({
        headless:true,
                executablePath: '/usr/bin/chromium',
        args: ['--no-zygote', '--no-sandbox']
    });

@richardlevy Thank you for sharing!

richardlevy commented 1 year ago

Thanks for the tip. Strangely I used mine on a Pi and don't have the same problem.