It is currently October 5th, 2024, 3:07 pm

Lua user counter question

Discuss the use of Lua in Script measures.
Zaragan
Posts: 58
Joined: January 10th, 2015, 3:14 pm

Re: Lua user counter question

Post by Zaragan »

balala wrote: November 6th, 2020, 4:18 pm Well, actually Rainmeter can talk...
You f...r, you scared the s..t out of me thinking that i can use something from that link, didn't think that you mean that LITERALLY!

:D :D :D :D :D :D :D
User avatar
balala
Rainmeter Sage
Posts: 16631
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Lua user counter question

Post by balala »

Zaragan wrote: November 6th, 2020, 11:32 pm thinking that i can use something from that link, didn't think that you mean that LITERALLY!
Didn't mean it literally, you have to install the Speech plugin from the posted link.
User avatar
balala
Rainmeter Sage
Posts: 16631
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Lua user counter question

Post by balala »

dvo wrote: November 11th, 2020, 3:17 pm nice that your say speech otherwise he tought it would be real
I said Speech (not speech), because this is the name of the plugin.
User avatar
Yincognito
Rainmeter Sage
Posts: 8350
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: Lua user counter question

Post by Yincognito »

Zaragan wrote: November 3rd, 2020, 12:41 am I everyone! I was thinking of adding some online user counter and what i will need to do it (some backend database or such). Can someone give me a push on the right direction to do it? I'm not asking for code, just the tools to do it!! I love breaking my head on walls to reach my goals :D I have a little knowledge of js, php and mysql but nothing to deep.

Thank you so much to everyone!!
Not trying to necropost here, but you don't necessarily have to use Lua or Rainmeter to do this. If Python, PHP, CMD or PowerShell can do the first part (i.e. "talking" and "writing" stuff to where you store that counter and all that), then they can definitely be triggered by a RunCommand measure in Rainmeter (not sure about triggering the PHP scripts though), and Lua or Rainmeter can definitely read what has been written.
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth
ktj84
Posts: 12
Joined: February 20th, 2022, 8:57 pm

Re: Lua user counter question

Post by ktj84 »

I ran into the same issue. I did find the next topic which could interested for you:

https://stackoverflow.com/questions/10356709/installing-lua-socket-library

I'm trying to interface with some other software where I need the same.
Trying to build some nice dashboards with info from other applications.
Rainmeter has (for me) some very nice tooling on board to easily create graphs and gauge's.

Easy to setup and install.

When I have some more information or something to show I'll post it here. :great:
User avatar
jsmorley
Developer
Posts: 22819
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Lua user counter question

Post by jsmorley »

ktj84 wrote: February 23rd, 2022, 11:59 am I ran into the same issue. I did find the next topic which could interested for you:

https://stackoverflow.com/questions/10356709/installing-lua-socket-library

I'm trying to interface with some other software where I need the same.
Trying to build some nice dashboards with info from other applications.
Rainmeter has (for me) some very nice tooling on board to easily create graphs and gauge's.

Easy to setup and install.

When I have some more information or something to show I'll post it here. :great:
You really can't use external compiled libraries with Lua and Rainmeter...

https://docs.rainmeter.net/manual/lua-scripting/#Restrictions
ktj84
Posts: 12
Joined: February 20th, 2022, 8:57 pm

Re: Lua user counter question

Post by ktj84 »

Do you mean that the LUA socket library is also external compiled then?
And those library's are not possible to invoke them in the LUA scripting as suggested in the topic i referred to?

I interpreted that it wasn't possible to use abbreviates of the LUA library.
But LUA socket looks to me as an official LUA library.

If that is the case; thanks for the early warning.
I have overlooked the warning in that section :???: