/Freecash.comBot.js

Fun private project for freecash.com , information scraped from the site will be displayed on a raspberryPI I2C display !

Primary LanguageJavaScript

Freecash.comBot.js

This is a very basic private project I am working on to learn more 'JavaScript' and integrations with my 'Raspberry PI' , this is a simple program that will scrape user statistics / profile information and display this information on a I2C 16x2 LED display via 'node JS'.

Alt text

Features

* Log user balance (coins value & USD value)
* Log total completed offers
* Log total referrals
* Log total earnings (coins value & USD value)
* Log coin earnings from referrals
* Log Date joined & Days since registration
* Log current XP & XP required for next rank

Features to add

* Log last offer completed (name + time + amount)
* Log when daily bonus will be available next
* Show "Alert I2C message' when offer just credited (WS)
* If approved by staff add button to "click and claim" daily bonus

Install / setup

* sudo apt update (upgrade package lists)
* sudo apt upgrade (upgrade all packages to latest version)
* sudo apt install nodejs npm (install node JS / NPM)
* cd {directory} (navigate to folder containing files)
* nano index.js (open file editor for file)
* Replace 'session_id' with existing session ID
* CTRL + X -> Yes (Exit out and save changes to file)
* Node index.js (run file)

Requirements

* NodeJS v14.15.4
* RaspberryPI
* I2C 16x2 LCD display
* Node packages

Node packages

* npm install chalk                       | (colourful console output)
* npm install raspberrypi-liquid-crystal  | (I2C writer))
* npm install node-fetch                  | (web-requests)

Amazon Link for LED display (recommended from google)
Ebay listings

16x2 I2C LCD setup to raspberry PI

GND on LCD goes to pin 6 on the raspberry pi
VCC on LCD goes to pin 4 on the raspberry pi
SDA on LCD goes to pin 3 on the raspberry pi
SCL on LCD goes to pin 5 on the raspberry pi

Alt text Alt text

Admin@hvh.site