the light behind your eyes but you’re watching the sunset on a beach
seen from China

seen from Malaysia

seen from Malaysia
seen from Türkiye
seen from Türkiye
seen from United States

seen from India

seen from United States
seen from United States
seen from Malaysia
seen from Türkiye
seen from Malaysia

seen from Malaysia
seen from Singapore
seen from Singapore
seen from United Kingdom
seen from Hong Kong SAR China
seen from Netherlands
seen from Pakistan
seen from United States
the light behind your eyes but you’re watching the sunset on a beach
This is when I hate Xehanort even more for killing kairi.
@damatocustomstippling - My EDC tray from @keybar just got a serious upgrade from @hellbentholsters in the form of the Combat Wallet 3.0, pretty good looking wallet! #CW3 #combatwallet #combatwallet3 #hellbentforlife #keybar #edc #pocketstate #igguns #igmilitia #AZ #knifeart #oakley #Regrann
Evenement : @swco62 #chtarwars #cw3 Photographe : @synmando & Kyke Teams : @alliance_imperiale #allianceimperiale #europeancosplay #starwarsfan #theforceunleashed #theforceunleashed2 #theforceunleashedii #theforceunleashedcosplay #starwars #cosplaystarwarsfan #sithlord #swcosplay #starwars #starkiller #starkillercosplay #starwarsunleashed #sithlord #ultrasabers #starwars_siths #jedimaster #gi_starwarsinfinite #samwitwer #starwarsfan #mando #mandomonday #mandolorian #followforfollowback (à Boulogne-Sur-Mer, Nord-Pas-De-Calais, France) https://www.instagram.com/p/ClmsZr0K8nZ/?igshid=NGJjMDIxMWI=
#TheMostDiverseNetwork @bybenterprises 🚨New Music Alert🚨 #RightTime by @g7terra Off the Clockwork 3 album 🏃🏿♂️up da numbaz. . . . . #CW3 #newmusicalert #goodmusic #spotify #musicpromotion #songwriter #applemusic #music #newmusic #artist #tiktok #musicproduction #youtubevideos #follow #worldstar #musicmarketing #rokcstone #byb #broncoalways #Jamaica #beach https://www.instagram.com/p/CTZj72CH59D/?utm_medium=tumblr
Summary
What went well:
I did create a working twitter bot using live data
I did create a working weather API using live data that it continuously gathers
I did previously create the mood rings in CSS, HTML and JS
I did make numerous changes myself (that worked) rather than simply following instructions
I did start to understand more about coding in general
What needs improving:
I did not manage to work out how to make the twitter bot output a picture
I could not connect the weather api and the twitter bot even though I’m sure it’s possible
I overcomplicated matters – next time I should start with something MUCH more simple
I misunderstood the instructions and spent time trying to work with the wrong coding languages
Twitter stuff 5 - it starts to work
Since we had another week to add stuff to the blog I decided to have another go at improving the work I’d done.
As usual it took me a lot longer and more errors but I eventually created a twitter bot using node.js. I don’t think this is exactly what was asked of me, but I simply can’t find a way to do it in P5, because all the instructions I can find are for Ruby or Python or node. At least all the instructions that have made sense. So this will have to do for a start because I can at least use it to use live streaming data and tweet an image.
But first I got it to tweet at all, then search for various words using the track parameter, then search for various words with a geolocation too. Had to get my geocode from here http://en.mygeoposition.com/ because it’s not the same as just long and lat.
Then I went to http://www.idfromuser.com/ to get the id number of BBC weather watchers on twitter (it’s 3663259516).
Then I decided to go simple, and just look for one of my “calm” words.
After my twitter archive eventually appeared in my inbox I spent quite a while trying to get this code to work:
const Twit = require('twit')
const config = require('./config')
const bot = new Twit(config)
const filePath = path.join(Sam\tweebot-play\src'.\twitter-archive\tweets.csv')
const tweetData =
fs.createReadStream(filePath)
.pipe(csvparse({
delimiter: ','
}))
.on('data', row => {
console.log(row[5])
})
It failed and eventually I had to give up. Nothing online helps.
I’m sure there’s a way to combine my weather api with this twitter bot but I just can’t figure it out.
From here https://hackernoon.com/create-a-simple-twitter-bot-with-node-js-5b14eb006c08 this part is important info to save:
Now to automate this action we defined above, we can use JavaScript’s timer function setInterval() to search and retweet after a specific period of time.
// grab & retweet as soon as program is running...
retweet();
// retweet in every 50 minutes
setInterval(retweet, 3000000);
Please note that all JavaScript’s Timer functions take the amount of time argument in milliseconds.
When I work out how to post a picture this will make it an actual bot. But all I can find is ways to post random pictures, not how to choose which pictures to post.
I decided to test out the setInterval function on my weather node api, setting it first for every five minutes (just taking a zero off the number above), then, if that worked, for every day, every 86400000 milliseconds.
Obvs the wording is different because it’s not a tweet:
function intervalFunc() {
console.log('Cant stop me now!');
}
setInterval(intervalFunc, 1500);
Obvs all this does is write Can’t stop me now every five minutes, which isn’t very useful. I’ve asked for help on stackexchange. ETA: got the help amazingly quickly, and now it works!
*Attach screenshot of working console thingy
Back to the twitterbot. I can still get it to search for my various search terms but trying to add the setInterval function causes it all to stop working. It looks the same as my weather file, so I’m not sure why it won’t work here.
Anyway, here are the relevant files:
http://helenseviltwin.com/juliette/.env
http://helenseviltwin.com/juliette/bot.js
http://helenseviltwin.com/juliette/index3.js
http://helenseviltwin.com/juliette/weatherapp3.html
(All here: http://helenseviltwin.com/juliette/)