{"id":20161614,"url":"https://github.com/openipc/majestic-plugins","last_synced_at":"2025-04-10T00:14:43.865Z","repository":{"id":215848450,"uuid":"739912947","full_name":"OpenIPC/majestic-plugins","owner":"OpenIPC","description":"Majestic plugins for OpenIPC","archived":false,"fork":false,"pushed_at":"2024-12-24T13:44:56.000Z","size":7,"stargazers_count":6,"open_issues_count":0,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-10T00:14:35.549Z","etag":null,"topics":["majestic","majestic-plugins","openipc"],"latest_commit_sha":null,"homepage":"https://openipc.org","language":"C","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OpenIPC.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-01-06T23:19:09.000Z","updated_at":"2025-04-04T03:34:36.000Z","dependencies_parsed_at":"2024-02-18T21:23:36.656Z","dependency_job_id":"d6c6b548-314f-48c4-8d4f-646829b8bc8b","html_url":"https://github.com/OpenIPC/majestic-plugins","commit_stats":{"total_commits":21,"total_committers":4,"mean_commits":5.25,"dds":"0.38095238095238093","last_synced_commit":"64ce7494ab7a53a23fe17cb62553dbc54158a06b"},"previous_names":["openipc/majestic-plugins"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenIPC%2Fmajestic-plugins","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenIPC%2Fmajestic-plugins/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenIPC%2Fmajestic-plugins/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenIPC%2Fmajestic-plugins/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OpenIPC","download_url":"https://codeload.github.com/OpenIPC/majestic-plugins/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248131315,"owners_count":21052819,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["majestic","majestic-plugins","openipc"],"created_at":"2024-11-14T00:19:47.471Z","updated_at":"2025-04-10T00:14:43.837Z","avatar_url":"https://github.com/OpenIPC.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"![OpenIPC logo][logo]\n\n## Majestic plugins for OpenIPC\n**_Experimental system for creating open source plugins for Majestic_**\n\n### Important information:\n- At the moment, examples of plugins have been implemented [only][only] for the most [popular][popular] processors today.\n- Nothing prevents everyone and enthusiasts from adding them to other processors and actively developing them.\n- By default, the plugin system is disabled and does not contribute any actions to the main operation of the device.\n\n---\n\n### Example function:\n- New functions can be added to `vendor/custom.c`\n- RETURN is a macro to simplify the plugin response output.\n```\nstatic void get_example(const char *value) {\n\tRETURN(\"plugin get_example: %s\", value);\n}\n\nstatic table custom[] = {\n\t[...]\n\t{ \"example\", \u0026get_example },\n};\n```\n\n### Example result:\n\n```\nroot@openipc-ssc337de:~# echo example test123 | nc localhost 4000\nplugin get_example: test123\n```\n\n---\n\n### Prepare source:\n```\ngit clone https://github.com/OpenIPC/firmware --depth 1\ncd firmware\n```\n\n### Build usage:\n```\n- Hisilicon:\nmake br-majestic-plugins-rebuild BOARD=hi3516ev300_lite\n\n- Goke:\nmake br-majestic-plugins-rebuild BOARD=gk7202v300_lite\n\n- Ingenic:\nmake br-majestic-plugins-rebuild BOARD=t31_lite\n\n- Sigmastar:\nmake br-majestic-plugins-rebuild BOARD=ssc335_lite\n```\n\n### Upload file:\n```\nscp -O output/build/majestic-plugins-master/*.so root@192.168.1.10:/usr/lib\n```\n\n---\n\n### Activate plugin support:\n```\nssh root@192.168.1.10\ncli -s .system.plugins true\nkillall -1 majestic\n```\n\n### Send local command:\n```\necho brightness 100 | nc localhost 4000\n```\n\n### Send remote command:\n```\necho -e '#!/usr/bin/haserl\\nServer: $SERVER_SOFTWARE\\nCache-Control: no-store\\n\\n\u003c% echo $(echo $GET_cmd $GET_val | nc localhost 4000) %\u003e' \u003e /var/www/cgi-bin/plugins.cgi \nchmod 755 /var/www/cgi-bin/plugins.cgi\n```\n- http://192.168.1.10/cgi-bin/plugins.cgi?cmd=brightness\u0026val=100\n\n[logo]: https://openipc.org/assets/openipc-logo-black.svg\n[only]: https://github.com/OpenIPC/firmware/blob/1a39728b88f2359a75069082caf7f62367f96f6a/general/package/majestic/majestic.mk#L15\n[popular]: https://openipc.org/supported-hardware/featured\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenipc%2Fmajestic-plugins","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenipc%2Fmajestic-plugins","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenipc%2Fmajestic-plugins/lists"}